| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
When using variants, showing main SKU in product lists | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
When using variants, showing main SKU in product lists
Hi. I searched the forum but couldn't find the exact solution to this problem. Please forgive if I'm repeating a past post.
We're a clothing company, so we use variants for our products. When listing products on search result and category/subcat pages, the default SKU number that is pulled for $products[product].product is the SKU for the first product variant, not the "root" SKU for the product. So, for a product with "root" SKU CZ-0012 that has variant SKUs CZ-0012-BL, CZ-0012-RD etc., the product list will show the SKU CZ-0012-BL. I want it to show the "root" SKU CZ-0012. Which file would I need to edit to do this and how? -------------------- Simma Park BabyCZ.com XCART Gold 4.0.11 |
|||||||
#2
|
|||||||
|
|||||||
Re: When using variants, showing main SKU in product lists
Quote:
Exact same issue .. Did you ever get an answer on this? Anyone? Best, Harold ...
__________________
--- X-Cart v4.0.13 |
|||||||
#3
|
|||||||||
|
|||||||||
I have seen this same topic, also unanswered, in another thread. I found a workaround for one site I'm doing, but this probably wouldn't work for most. Because these particular products don't really need short descriptions, I am using the root sku as the short description and displaying that code, not the sku code. That is, instead of
{$products[product].productcode} I am using {$products[product].product} This isn't the greatest solution, because a lot of people need those short descriptions for what they're meant for. I'd like to find something more correct.
__________________
Industrial Webworks Various xcart versions from 4.1.19 gold - 4.7 gold http://www.industrialwebworks.net |
|||||||||
#4
|
|||||||||
|
|||||||||
Showing main SKU - solution!
I just got an answer from x-cart on this one. In include/search.php, comment out the two places where
Code:
Save your 25 points and read it here!
__________________
Industrial Webworks Various xcart versions from 4.1.19 gold - 4.7 gold http://www.industrialwebworks.net |
|||||||||
#5
|
|||||||
|
|||||||
Re: When using variants, showing main SKU in product lists
Has anyone been successful with finding the code for v4.1.9 to achieve the same results as above?
__________________
______________ version 4.1.9 Gold |
|||||||
#6
|
|||||||
|
|||||||
Re: When using variants, showing main SKU in product lists
Does anyone have a suggestion to display the root sku (part number) on the product.tpl and products_t.tpl pages for variants. I checked in my include/search.php and the only reference close to the above code by proboscidian is $sql_tbl[variants].productid:
$left_joins["variants"] = array( "on" => "$sql_tbl[variants].productid = $sql_tbl[products].productid AND $sql_tbl[quick_prices].variantid = $sql_tbl[variants].variantid", "parent" => "quick_prices" ); Once a product variant is selected and the customer adds to cart for checkout, then the variant sku number is fine to display. Christine
__________________
______________ version 4.1.9 Gold |
|||||||
#7
|
|||||||
|
|||||||
Re: When using variants, showing main SKU in product lists
Bump. Has anyone made a change to display the root sku on the product.tpl and products_t.tpl pages for variants?
Christinie
__________________
______________ version 4.1.9 Gold |
|||||||
#8
|
|||||||
|
|||||||
Re: When using variants, showing main SKU in product lists
hi all,
Current X-Cart logic is: when product has Variants then it use the first variant SKU for showing at product detail new login we need is: showing main SKU instead of showing first Variant SKU my Solution: - FILE: \wholesale\include\func\func.product.php FUNCTION: func_select_product LINE: around 1049 √ what you should do is: you should comment the line Code:
also : in \skin\"your skin name"\customer\main\product_details.tpl line: find the table row that shows the productcode and remove the "id=product_code" attribute of TD tag. i think its not true for deleteing this attribute and we should find that where at the code side it set the value for this id.
__________________
Version 4.4.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|