Jump to content

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

Cs Cart Show Text On New Product Only Rate Topic   - - - - -

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 19 February 2020 - 12:56 PM #1

How can i show text on only new products?

 

something like:

 

{if $is_new}NEW{/if}

 

all help is appreciated. How can i also show vendor info on the checkout page, help please, thanks in advance!



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

Posted 19 February 2020 - 02:21 PM #2

Try something like

{if $product.timestamp > $smarty.const.TIME - $smarty.const.SECONDS_IN_DAY * 3}
    NEW
{/if}

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

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 21 February 2020 - 11:34 AM #3

Try something like

{if $product.timestamp > $smarty.const.TIME - $smarty.const.SECONDS_IN_DAY * 3}
    NEW
{/if}

(!) Not tested

I tried it but it didn't show the text, please help



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

Posted 21 February 2020 - 01:20 PM #4

Where did you place this code?


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 25 February 2020 - 04:52 AM #5

On the product detail page, it works when i put it on the product data but not on the detail page. Please also can you tell me how to show the on backend admin "website > search word > search string" on the front end. Thank you



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

Posted 25 February 2020 - 06:05 AM #6

On the product detail page, it works when i put it on the product data but not on the detail page.


It should work. Examination is required

Please also can you tell me how to show the on backend admin "website > search word > search string" on the front end. Thank you


Please clarify your question
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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 25 February 2020 - 10:18 AM #7

Oh yes!!!!! i was adding in a div that had a hidden class... loll Thanks so much!



 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 25 February 2020 - 10:19 AM #8

It should work. Examination is required


Please clarify your question

I want to show the saved search words from the admin page in the front end



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

Posted 25 February 2020 - 02:27 PM #9

There is no ability to show search phrases in the store-front


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 26 February 2020 - 04:00 AM #10

There is no ability to show search phrases in the store-front

Ok, thanks.. When i add the {if $product.timestamp > $smarty.const.TIME - $smarty.const.SECONDS_IN_DAY * 3} NEW {/if} on the checkout page it doesn't work



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

Posted 26 February 2020 - 05:32 AM #11

Ok, thanks.. When i add the {if $product.timestamp > $smarty.const.TIME - $smarty.const.SECONDS_IN_DAY * 3} NEW {/if} on the checkout page it doesn't work

 

I understand now. Timestamp is not stored in the session with cart items data. Additional code modifications are required to store this data in the session


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 26 February 2020 - 08:45 AM #12

Can you give me the code and where to put it, thank you



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

Posted 26 February 2020 - 02:26 PM #13

Please make a request here to get a quote

 

https://www.ecom-labs.com/?quote


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 117 posts

Posted 26 February 2020 - 03:49 PM #14

Ok, I'll.. please can you tell what i'm i doing wrong.... This code "{$vendor_data.state}, {$vendor_data.country}, {$vendor_data.zipcode}" shows the vendor state, country and zipcode everywhere, but won't show on checkout and cart page, i need help to show this info on the checkout and cart page..