Characteristics not showing in orders

  • Posts: 9
  • Thank you received: 0
9 years 4 months ago #208738

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.6
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

I have characteristics for different sizes on a product that is set to "Group options with product". The email that goes out shows the characteristics fine and the sizes they chose, but the orders on the back end do not show the characteristics chosen unless I click the edit order button. Is there a way to show them so that it's easier when processing the orders?

We are using the PDF invoice plugin. If we can add the characteristics on the downloadable invoice, that would be even better since we are mass printing them anyway. We could process them much faster.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 4 months ago #208761

The chosen characteristic is displayed on the order details page and the invoice.
In the PDF invoice, it is done with the code

if($group){
						foreach($order->products as $j => $optionElement){
							if($optionElement->order_product_option_parent_id != $product->order_product_id) continue;

							$product->order_product_price +=$optionElement->order_product_price;
							$product->order_product_tax +=$optionElement->order_product_tax;
							$product->order_product_total_price+=$optionElement->order_product_total_price;
							$product->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat;
							?><br/><?php
							echo $optionElement->order_product_name;
							if($optionElement->order_product_price>0){
								if($config->get('price_with_tax')){
									echo ' ( + '.$currencyHelper->format($optionElement->order_product_price+$optionElement->order_product_tax,$order->order_currency_id).' )';
								}else{
									echo ' ( + '.$currencyHelper->format($optionElement->order_product_price,$order->order_currency_id).' )';
								}
							}
						}
					}
in the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php
So I'm not sure what you're talking about.
Could you provide more information ? A link to a product page with such option, a screenshot of the order details page and of the invoice page and of the product edition page of the product would be great.

Please Log in or Create an account to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum