Jump to content

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

Contact Us For Price - Should Have A Link Rate Topic   - - - - -

 
  • londonman
  • Member
  • Members
  • Join Date: 27-Oct 10
  • 302 posts

Posted 19 August 2021 - 09:56 AM #1

Hi there, 

As the image shows, in the product page, ' Contact us for price' should link to Contact us page or a popup for a contact us form?

But nothing,  can anyone tell me how to make it right.

Attached Thumbnails

  • product detail page contact us.png


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

Posted 19 August 2021 - 01:09 PM #2

you can use hooks in the following template

 

design/themes/responsive/templates/common/product_data.tpl

 

search by "contact_us_for_price"


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 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • londonman
  • Member
  • Members
  • Join Date: 27-Oct 10
  • 302 posts

Posted 19 August 2021 - 02:20 PM #3

you can use hooks in the following template

 

design/themes/responsive/templates/common/product_data.tpl

 

search by "contact_us_for_price"

Thank you but can  you give me the code as well.



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

Posted 20 August 2021 - 05:28 AM #4

Try to replace

<span class="ty-no-price">{__("contact_us_for_price")}</span>

with

<span class="ty-no-price"><a href="{"pages.view?page_id=123"|fn_url}">{__("contact_us_for_price")}</a></span>

where 123 - page ID of the Contact us page. You can find it in the admin panel

 

The clear cache

 

(!) 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 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • londonman
  • Member
  • Members
  • Join Date: 27-Oct 10
  • 302 posts

Posted 25 August 2021 - 09:18 AM #5

Try to replace

<span class="ty-no-price">{__("contact_us_for_price")}</span>

with

<span class="ty-no-price"><a href="{"pages.view?page_id=123"|fn_url}">{__("contact_us_for_price")}</a></span>

where 123 - page ID of the Contact us page. You can find it in the admin panel

 

The clear cache

 

(!) Not tested

I followed the guide and with the provided code, change the '123' to the page ID. But seem not working.

Any idea?



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

Posted 25 August 2021 - 01:09 PM #6

Do you see link on the label now? Have you cleared cache? Try to delete the var/cache directory manually


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 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • londonman
  • Member
  • Members
  • Join Date: 27-Oct 10
  • 302 posts

Posted 25 August 2021 - 03:12 PM #7

Do you see link on the label now? Have you cleared cache? Try to delete the var/cache directory manually

Hi, thank you for correcting me. It works now.  :grin: