- Posts: 37
- Thank you received: 0
custom field in cart
11 years 5 months ago #199129
by Vorov
custom field in cart was created by Vorov
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.4.1
cart.php :blink:
please tell me what code to insert in cart.php to display the field value of the goods ?
There is a mandatory value that should be visible in the shopping cart.
If possible, this code could be used in the module of the basket.
Thank you.
-- Joomla version -- : 3.4.1
cart.php :blink:
please tell me what code to insert in cart.php to display the field value of the goods ?
There is a mandatory value that should be visible in the shopping cart.
If possible, this code could be used in the module of the basket.
Thank you.
Please Log in or Create an account to join the conversation.
11 years 5 months ago #199149
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic custom field in cart
Hi,
The view is "product | cart" but it will be difficult to give you some code without knowing exactly what you want to display.
Dealing with the custom field can be difficult depending what you want to achieve ; and depending the kind of custom field (product / item) the code will be very different.
Regards,
The view is "product | cart" but it will be difficult to give you some code without knowing exactly what you want to display.
Dealing with the custom field can be difficult depending what you want to achieve ; and depending the kind of custom field (product / item) the code will be very different.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
11 years 5 months ago #199177
by Vorov
Replied by Vorov on topic custom field in cart
this
<td data-title="<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>" class="hikashop_cart_product_price_value">
<?php
$this->row=&$row;
$this->unit=true;
echo $this->loadTemplate();
?>
replace
<?php
if(!empty($this->fields)){
$this->setLayout('show_block_custom_main');
echo $this->loadTemplate();
}
?>
<td data-title="<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>" class="hikashop_cart_product_price_value">
<?php
$this->row=&$row;
$this->unit=true;
echo $this->loadTemplate();
?>
replace
<?php
if(!empty($this->fields)){
$this->setLayout('show_block_custom_main');
echo $this->loadTemplate();
}
?>
Please Log in or Create an account to join the conversation.
11 years 5 months ago #199183
by nicolas
Replied by nicolas on topic custom field in cart
Hi,
You didn't say what custom field you want to display.
Let's suppose that you're talking about a custom product field.
In that case, it's really easy. Just add such code:
<?php echo $row->column; ?>
where column should be replaced with the column name of your custom product field.
You didn't say what custom field you want to display.
Let's suppose that you're talking about a custom product field.
In that case, it's really easy. Just add such code:
<?php echo $row->column; ?>
where column should be replaced with the column name of your custom product field.
The following user(s) said Thank You: Vorov
Please Log in or Create an account to join the conversation.
11 years 5 months ago #199254
by Vorov
Replied by Vorov on topic custom field in cart
Super, everything works fine, thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.151 seconds