The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Get products in comparison list

Posted: April 12, 2018 at 4:30 AM Quote #203068
Hi,

I have some featured products on the home page. When a customer adds one of these products to their comparison list it changes the comparison list button color.

On page load i am trying to write a function to get the products that are in the comparison list so i can color the buttons accordingly based on whether its in their comparison list or not.

Has anyone had any experience with this?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: April 12, 2018 at 5:19 AM Quote #203074
SamSnap wrote:
Hi,

I have some featured products on the home page. When a customer adds one of these products to their comparison list it changes the comparison list button color.

On page load i am trying to write a function to get the products that are in the comparison list so i can color the buttons accordingly based on whether its in their comparison list or not.

Has anyone had any experience with this?


What are you looking forward to in response? Pls share what you have tried already?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Pls up-vote the answer, if it helps you! :)

nopAccelerate - Faster, Reliable & Scalable nopCommerce

http://www.nopAccelerate.com | http://www.xcellence-it.com | http://shop.xcellence-it.com

Need any professional assistance? Drop us your requirements on sales(at)nopaccelerate.com
Posted: April 12, 2018 at 6:49 AM Quote #203084
SamSnap wrote:
Hi,

I have some featured products on the home page. When a customer adds one of these products to their comparison list it changes the comparison list button color.

On page load i am trying to write a function to get the products that are in the comparison list so i can color the buttons accordingly based on whether its in their comparison list or not.

Has anyone had any experience with this?


Hi,

Please have a look in our article - How to marked a product in Compare List?

With this solution, when a product added to the compare list, the system will adds "in-compare-list" CSS class to the root tag of the product details / product box view. So that, based on this class, you can style every child elements.

Hope this helped :)
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
ima9ines.com - Let's contribute to the community :)

Kind Regards,
Tuấn Đỗ (ima9ines)

Skype support account - tuan_da2

FREE plugins
http://ima9ines.com/en/nopcommerce-plugins-free
http://www.nopcommerce.com/marketplace.aspx?vendor=61573
Posted: April 12, 2018 at 7:31 AM Quote #203093
NOTED it is code for nopCommerce 4, for 3.90 will be added later.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
ima9ines.com - Let's contribute to the community :)

Kind Regards,
Tuấn Đỗ (ima9ines)

Skype support account - tuan_da2

FREE plugins
http://ima9ines.com/en/nopcommerce-plugins-free
http://www.nopcommerce.com/marketplace.aspx?vendor=61573
Posted: April 12, 2018 at 9:25 AM Quote #203103
Updated code for nopCommerce 3.90
Please have a look :)
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
ima9ines.com - Let's contribute to the community :)

Kind Regards,
Tuấn Đỗ (ima9ines)

Skype support account - tuan_da2

FREE plugins
http://ima9ines.com/en/nopcommerce-plugins-free
http://www.nopcommerce.com/marketplace.aspx?vendor=61573
Posted: July 31, 2018 at 7:31 AM Quote #209637
Hi ima9ines,

I would like to do the same thing as the comparison list but with the wishlist. how would i be able to do this?

Any help would be appreciated.

Thanks
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: August 28, 2018 at 7:40 AM Quote #211185
i would like to do the same thing, cant load a comparisson much further

Sewa Tenda
Sewa Tenda Murah
Sewa Tenda Jakarta
Tenda Dekorasi
Tenda VIP
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
[url=http://lautantenda.com/]Sewa Tenda[/url]
[url=http://lautantenda.com/]Sewa Tenda Murah[/url]
[url=http://lautantenda.com/]Sewa Tenda Jakarta[/url]
[url=http://lautantenda.com/]Tenda Dekorasi[/url]
[url=http://lautantenda.com/]Tenda VIP[/url]
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more