X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product options in product list (https://forum.x-cart.com/showthread.php?t=63615)

mcanitano 02-12-2015 05:23 AM

Re: Product options in product list
 
We've gotten it to at least pass the product options to product list.

What we're basically trying to do, is use the code you added to /products.php in post #12 in this thread. We're using this to show an image that says "Options Available!" over top of the product thumbnails in any product list on our site (we use products_t.tpl). But since New Arrivals and On Sale products are populated in a different area, we can't get it to work with them.

Tried putting the code from products.php into new_arrivals.php and on_sale.php but it didn't work. Though it did work for manufacturers.php (but I think that's because the manufacturers.php product array may be pulled from the same array products.php uses).

See: silverhorseracing.com to view what we are doing.

Right now we have if statements:

Code:

{if $product.is_product_options eq "Y"}
 
  {foreach from=$product_options item=v}
    {if $v.options ne '' or $v.is_modifier eq 'T' or $v.is_modifier eq 'A'}
{show image div here}...
...
...


Bradgl 06-10-2015 11:42 AM

Re: Product options in product list
 
Thanks TotalTec. I added the modification to my website (x-cart 4.1), and it works great. It only shows the product options on the category pages, and I'd like to see if there is a easy way to make it show on all of the pages that show a product list (ex. search, featured products etc).

I used to code out of the post dated 06-22-2012, 09:46 AM and 06-22-2012, 10:10 AM.

finestshops 02-02-2017 12:29 PM

Re: Product options in product list
 
Hi Mike,

How is it going?
thanks for posting this mode.
did you manage to make it work with variants and wholesale prices?

totaltec 02-02-2017 03:50 PM

Re: Product options in product list
 
Anton,
Good to hear from you friend! I have not messed with this for years, I don't think I ever worked on variants and wholesale prices for this.

It is something I could code for sure if a client was interested. These days though, its hard to find the time to do stuff like this without having a paying client to do it for.

finestshops 02-02-2017 03:54 PM

Re: Product options in product list
 
yes, free is overrated nowadays :)
we are almost done with it anyway.
see you soon in Chicago.


All times are GMT -8. The time now is 06:48 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.