Jump to content

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

How Can I Get User Zipcode To Show On Product Page, Thanks Rate Topic   - - - - -

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

Posted 02 November 2019 - 07:12 AM #1

I tried this but no luck {$user_info.zipcode}



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 885 posts

Posted 02 November 2019 - 10:06 AM #2

Hello

 

Where exactly do you want to show it?

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl

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

Posted 02 November 2019 - 08:06 PM #3

I want to get the zipcode of the customer and show it on the product page



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 885 posts

Posted 03 November 2019 - 05:36 PM #4

Hello

 

Try this

 

{$smarty.session.cart.user_data.s_zipcode}

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl

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

Posted 04 November 2019 - 04:04 AM #5

Awesome great solution, Thanks! Do you know how i can show the review count on the home page, i was able to display the product ratings 5 star but the number of reviews count won't show up



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 885 posts

Posted 04 November 2019 - 08:20 AM #6

Hello

 

You can try something like this:

 

{assign var="reviews" value=""|fn_get_discussions}
{$reviews[0]|@count}
 
in block type html with smarty.
 
Best regards
Robert

Team of SoftSolid
cs-cart.pl

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

Posted 04 November 2019 - 03:43 PM #7

Wonderful, Thanks! i may need to show more stuff, is it fine if i ask you here directly?



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 885 posts

Posted 04 November 2019 - 04:05 PM #8

Hello

 

Yes. No problem.

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl

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

Posted 04 November 2019 - 04:25 PM #9

on the reviews, it's not showing individual product ratings on the homepage


Thank you!

Hello

 

Yes. No problem.

 

Best regards

Robert



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

Posted 05 November 2019 - 02:24 AM #10

example of what i was looking on the homepage is:

 

product:

 

White t-shirt small, medium and large sizes

 

X X X X X (35)



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 885 posts

Posted 05 November 2019 - 11:28 AM #11

Hello

 

None of these addns meet your expectations?

 

https://marketplace....products.search

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl

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

Posted 05 November 2019 - 11:16 PM #12

No, i already have the star rating on there.

I have some products on the homepage with the 5 star rating already on them i want to show the number of people that have rated each product next to the star on homepage. (177 customer ratings). It works on the product page but not on the home page. They code you gave showed the number of the total reviews for all the products, but i want it to be for only the individual product (product_id)