Jump to content

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

Contact Us For A Price Rate Topic   - - - - -

 
  • martinchew
  • Member
  • Members
  • Join Date: 04-May 21
  • 45 posts

Posted 23 September 2021 - 03:04 PM #1

When the price is zero, Contact Us For a Price is showing, how to do so we can make it with a link  click to the show the message us to the vendor?

 

Besides, is the there any option to make the price as a range instead of an absolute price if the price is depending on how much services need to provide to the customer? For example, $50 - $100.

 

Thanks


Martin


 

Posted 24 September 2021 - 02:07 AM #2

Your first question doesn't make much sense on this end, but re your second: If you have multi-vendor you can make the product a common "product that vendors can sell", then when one vendor sells it you will get a price "From $...", not quiet what you are after. The price is increased by "modifiers" in "opitions".



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

Posted 24 September 2021 - 06:00 AM #3

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

 

replace

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

with

<span class="ty-no-price ty-hand" onClick="$('.ty-vendor-communication__post-write').trigger('click');">{__("contact_us_for_price")}</span>

Then 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)


 
  • martinchew
  • Member
  • Members
  • Join Date: 04-May 21
  • 45 posts

Posted 24 September 2021 - 07:13 AM #4

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

 

replace

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

with

<span class="ty-no-price ty-hand" onClick="$('.ty-vendor-communication__post-write').trigger('click');">{__("contact_us_for_price")}</span>

Then clear cache

 

(!) Not tested

 

Thanks, it is working but the message window does not close after the message is sent. If the user want to close the message window, they also must close it 2 times to exit the message, this is the video: https://www.youtube....h?v=UfeUbz_nIZ8.

Is there an option to attach images or files in the message window? 


Martin


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

Posted 24 September 2021 - 01:45 PM #5

Thanks, it is working but the message window does not close after the message is sent. If the user want to close the message window, they also must close it 2 times to exit the message, this is the video: https://www.youtube....h?v=UfeUbz_nIZ8.

Is there an option to attach images or files in the message window? 

 

In this case detailed examination is required

 

We do not know about ready-to-use addons for this


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
  • 297 posts

Posted 24 September 2021 - 03:12 PM #6

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

 

replace

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

with

<span class="ty-no-price ty-hand" onClick="$('.ty-vendor-communication__post-write').trigger('click');">{__("contact_us_for_price")}</span>

Then clear cache

 

(!) Not tested

Hi , can this work on cs cart ultimate version?



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

Posted 27 September 2021 - 04:24 AM #7

Hi , can this work on cs cart ultimate version?

 

Sure, it will work on all CS-Cart and Multi-Vendor editions


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
  • 297 posts

Posted 27 September 2021 - 02:46 PM #8

Sure, it will work on all CS-Cart and Multi-Vendor editions

Hi, I use to the CS CART but nothing shows up when I click. 

I use localhost to make test.



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

Posted 28 September 2021 - 04:50 AM #9

Try to delete the var/cache directory manually

 

Also please make sure that the Message center addon is enabled


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
  • 297 posts

Posted 28 September 2021 - 07:19 AM #10

Try to delete the var/cache directory manually

 

Also please make sure that the Message center addon is enabled

Yes, all files in var/cache is deleted. 

And the addon'Message center' is already open.

I cannot attach the image, below the code I did on the file,

    {elseif $product.zero_price_action == "R"}
<span class="ty-no-price ty-hand" onClick="$('.ty-vendor-communication__post-write').trigger('click');">{__("contact_us_for_price")}</span>
                {/if}
            {/hook}
            {/if}
        {elseif $settings.Checkout.allow_anonymous_shopping == "hide_price_and_add_to_cart" && !$auth.user_id}
            <span class="ty-price">{__("sign_in_to_view_price")}</span>
        {/if}
    <!--price_update_{$obj_prefix}{$obj_id}--></span>

Let me know if anything need to correct?



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

Posted 28 September 2021 - 01:28 PM #11

Please check the source code of the product details page and check if the new code exists there. Third party addons can override the mentioned template


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
  • 297 posts

Posted 29 September 2021 - 07:22 AM #12

Please check the source code of the product details page and check if the new code exists there. Third party addons can override the mentioned template

<span class="ty-no-price ty-hand" onclick="$('.ty-vendor-communication__post-write').trigger('click');">Contact us for a price</span>

Hi, no third party addon. It is a original CS CART (ultimate version)

I wonder if you can try it on a the same one and check if it works?



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

Posted 29 September 2021 - 01:41 PM #13

Yes, it works for me


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
  • 297 posts

Posted 01 October 2021 - 04:34 PM #14

Yes, it works for me

Do you thing I miss anything?

<span class="ty-no-price ty-hand" onClick="$('.ty-vendor-communication__post-write').trigger('click');">{__("contact_us_for_price")}</span>


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

Posted 04 October 2021 - 05:55 AM #15

Looks like everything is correct. Do you have a button on the product details page to start communication?


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
  • 297 posts

Posted 05 October 2021 - 09:31 PM #16

Looks like everything is correct. Do you have a button on the product details page to start communication?

Yes, ' Contact us for price', can be click but nothing shows up. It's very strange



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

Posted 06 October 2021 - 05:07 AM #17

I cannot help you without code examination.


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)