Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Quick View Page Rate Topic   - - - - -

 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 281 posts

Posted 10 January 2019 - 03:42 PM #1

I want to add the word "Back" to replace the almost invisible x button or add the another button to the bottom menu that only allows "add to cart" "add to wish list" "add to comparison list" 

How can I do this

thank you

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19161 posts

Posted 11 January 2019 - 06:29 AM #2

Quick view template

 

design/themes/THEME/templates/views/products/quick_view.tpl

 

Try something like

<a class="ty-btn__secondary ty-btn" onclick="$('.ui-dialog-titlebar-close:visible').trigger('click');">{__('close')}</a>

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 281 posts

Posted 14 January 2019 - 04:17 AM #3

Thanks e com

I'll try



 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 281 posts

Posted 19 January 2019 - 04:44 PM #4

eCom- tried your Tried your suggestion and got the following error

any suggestions?

Thanks

 ESS parse error: failed at `{__('close')}@gridColumns: 16;` line: 214



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19161 posts

Posted 21 January 2019 - 07:38 AM #5

eCom- tried your Tried your suggestion and got the following error

any suggestions?

Thanks

 ESS parse error: failed at `{__('close')}@gridColumns: 16;` line: 214

 

Did you edit correct file? Looks like code was added to .css or .less file


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 281 posts

Posted 21 January 2019 - 06:40 PM #6

ecom- I found the correct file. Do I just add it to the end or is there some section I should insert it into. Like after the last /div or before?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19161 posts

Posted 22 January 2019 - 06:43 AM #7

It depends on the place where you want to locate the button.


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 281 posts

Posted 22 January 2019 - 08:10 PM #8

I would like to see it at the bottom of the window either on the same line as ADD TO Cart   or under that line.

Just to be clear I am inserting-

<a class="ty-btn__secondary ty-btn" onclick="$('.ui-dialog-titlebar-close:visible').trigger('click');">{__('close')}</a>

and it is going into the file-

starts at line 172

 <div class="ty-product-block__button">

                                {assign var="add_to_cart" value="add_to_cart_`$obj_id`"}

                                {$smarty.capture.$add_to_cart nofilter}

 

                                {assign var="list_buttons" value="list_buttons_`$obj_id`"}

                                {$smarty.capture.$list_buttons nofilter}

                        </div>

                        {if $capture_buttons}{/capture}{/if}

                </div>

        </div>

            {assign var="form_close" value="form_close_`$obj_id`"}

            {$smarty.capture.$form_close nofilter}

        {/if}

 

        {if $smarty.capture.hide_form_changed == "Y"}

            {assign var="hide_form" value=$smarty.capture.orig_val_hide_form}

        {/if}

 

    {/hook}

    <!--product_main_info_{$obj_prefix}--></div>

Or add the same butten (continue shopping) as shown in the cart.

Thank you

Milton



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19161 posts

Posted 23 January 2019 - 07:37 AM #9

Try to add code between

{assign var="add_to_cart" value="add_to_cart_`$obj_id`"}
{$smarty.capture.$add_to_cart nofilter}

and

{assign var="list_buttons" value="list_buttons_`$obj_id`"}
{$smarty.capture.$list_buttons nofilter}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 281 posts

Posted 23 January 2019 - 04:18 PM #10

After adding-

 {if $capture_buttons}{capture name="buttons"}{/if}
                        <div class="ty-product-block__button">
                                {assign var="add_to_cart" value="add_to_cart_`$obj_id`"}
                                {$smarty.capture.$add_to_cart nofilter}
                                
                                <a class="ty-btn__secondary ty-btn" onclick="$('.ui-dialog-titlebar-close:visible').trigger('click');">{__('close')}</a>
 
                                {assign var="list_buttons" value="list_buttons_`$obj_id`"}
                                {$smarty.capture.$list_buttons nofilter}
                        </div>
The result is good-thank you very much.
Milton
 
 


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19161 posts

Posted 24 January 2019 - 06:26 AM #11

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.