| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Parent SKU for a item with variants? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is there a way I can get the parent SKU on an invoice?
Right now it just shows the SKU of the item that was ordered, but I would also like to show the product code of the product. Basically I used the Product Code to group the variants together, and used the UPC's of the products for the variants. Thanks, Mike
__________________
X-Cart Gold v4.1.9 |
|||||||
#2
|
|||||||
|
|||||||
![]() Technically there is no root SKU if you used variants, as each of the variants is their own product.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() X-Cart only supplies the product code of the variant and not the product. You would need to modify the query in include/func/func_order.php function func_order_data to rename the products table productcode field to something like parentproductcode so that it doesn't get overlayed by the product code in the order_details table. It should then be available in the template as $product.parentproductcode.
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#4
|
|||||||
|
|||||||
![]() Quote:
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
Oh wow, works perfectly... THANKS! For anyone else I added: $sql_tbl[products].productcode as parentproductcode to the sql query in the query in the function above.
__________________
X-Cart Gold v4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|