Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Product options in product list

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 02-12-2015, 05:23 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default 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}... ... ...
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #22  
Old 06-10-2015, 11:42 AM
 
Bradgl Bradgl is offline
    
Join Date: Oct 2010
Posts: 1
 

Default 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.
__________________
X-cart 4.1
CDSEO Pro
Remember Anonymous Carts
Reply With Quote
  #23  
Old 02-02-2017, 12:29 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default 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?
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote
  #24  
Old 02-02-2017, 03:50 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #25  
Old 02-02-2017, 03:54 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default Re: Product options in product list

yes, free is overrated nowadays
we are almost done with it anyway.
see you soon in Chicago.
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote

The following user thanks finestshops for this useful post:
totaltec (02-05-2017)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:29 AM.

   

 
X-Cart forums © 2001-2020