| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Variant chart in product description. | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Variant chart in product description.
I've had several complaints from customers that they don't like to have to select the different options in the drop down box to see the different prices on products that have variants. Some also got mad that the price was different than what they originally saw (people don't pay attention).
So taking something we did with our last site, I made a chart for the variants. So in skin1/customer/main/product.tpl add: Code:
Right before this section Code:
Then you just need to add this to the bottom of skin1/skin1.css and tweak the colors to your liking. Code:
An example can be see here http://www.aerostich.com/product.php?productid=16376&cat=248&page=1 Use at your own risk, it works with my cart, but who knows what it will do to yours
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#2
|
|||||||
|
|||||||
This could come in handy... nice site sstillwell thanks
|
|||||||
#3
|
|||||||
|
|||||||
Mr. Stillwell-
Thanks for posting that nice little mod - it was (almost) exactly what I was looking for! I've tweaked it slightly to display the inventory level for each variant. My modification also displays the table on items without variants - something I wanted for product display consistency. Note that my code will display inventory levels for variants or basic items regardless of the status of "Disable inventory tracking" in the admin. For the site I'm working on, we have this option checked - allowing customers to backorder items. (this was done on x-cart gold 4.0.14) -Glen Code:
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#4
|
|||||||||
|
|||||||||
Nice Idea, suprised x-cart didn't have the prices in the drop down for the variants the same way options have it.
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#5
|
|||||||||
|
|||||||||
Good idea...
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#6
|
|||||||||
|
|||||||||
How do you get to appear in products.tpl thumbnail template? and also how do you show the alt_currency?
__________________
Richard Ultimate 5.4 testing |
|||||||||
#7
|
|||||||
|
|||||||
Richie-
I'll try to address your questions in some updated code sometime later this week. The code above also doesn't account for multiple variants. Eventually, I'd like to make a specific row in the table highlight when the user selects their product options. -Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#8
|
|||||||||
|
|||||||||
that would be much appreciated! thanks!
__________________
Richard Ultimate 5.4 testing |
|||||||||
#9
|
|||||||
|
|||||||
Here is the latest version of my spin on Shane's variant table.
My goal with this was to display SKU, Variant Name(s), Inventory, and Price information in a table on the product.tpl page. For interface consistancy, I want this table to also appear for products that have no variants. Because modifiers do not have unique SKUs or Inventory, they do not appear in the table. The table can handle multiple variants per product by creating a column for each. Display of inventory levels is independent of Admin inventory preference settings. I want my customers to be allowed to backorder products, so I "Disable inventory tracking" in the admin. Fortunately, this doesn't actuallly turn off X-cart's backend inventory functionality - products and variants still display the inventory fields in the admin and purchases still impact these inventory levels. Bonus feature: because our sites typically have a mix of both warehoused products and "Just In Time" products (items ordered from our vendors per customer order), we need a way to display this gracefully to the customer. Here's what I did: 1) create an Extra Field (lefthand menu in the admin) called "Inventory Type". 2) in any product that is not warehoused, enter "JIT" in the "Inventory Type" field. My variants table will then display "Unlimited" in the inventory column instead of "0". Okay, here's the code: (place this anywhere on the product.tpl page where you would like the table to appear) Code:
The table makes use of a few custom CSS styles. Add these to your skin1.css file. Code:
Eventually, I'd like to figure out how to make individual rows highlight based on the variant selections made by the customer - but that's a ways down my to-do list. See it in action here: http://www.napawear.com - LIVE SITE (no test orders, please!) The mod above was written for X-cart Gold 4.0.13 Happy modding. -Glen[/url]
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#10
|
|||||||||
|
|||||||||
gfiebich
Thanx a lot.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
|
|||
X-Cart forums © 2001-2020
|