- Posts: 98
- Thank you received: 1
how can I find a value of shipping id
12 years 1 month ago #173785
by aspkiddy
how can I find a value of shipping id was created by aspkiddy
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3.
-- PHP version -- : 5.5.3
-- Error-message(debug-mod must be tuned on) -- : array(1) { [0]=> string(3) "6@0" } Notice: Array to string conversion in
C:\inetpub\wwwroot\1270012\templates\newtemplates\html\com_hikashop\checkout\cart.php on line 30 id shipping :
Hi,
In check out, I have only one shipping method which is selected.
I need find a value of shipping id ($shipping_id)
So I try this in Views : checkout : cart.php
but I cant find it...
Can you help me
thanks
-- Joomla version -- : 3.3.3.
-- PHP version -- : 5.5.3
-- Error-message(debug-mod must be tuned on) -- : array(1) { [0]=> string(3) "6@0" } Notice: Array to string conversion in
C:\inetpub\wwwroot\1270012\templates\newtemplates\html\com_hikashop\checkout\cart.php on line 30 id shipping :
Hi,
In check out, I have only one shipping method which is selected.
I need find a value of shipping id ($shipping_id)
So I try this in Views : checkout : cart.php
Code:
<div id="hikashop_checkout_cart" class="hikashop_checkout_cart">
<?php
// my new code
foreach($this->rows as $i => $row)
{
$app = JFactory::getApplication();
$shipping_id = $app->getUserState( HIKASHOP_COMPONENT.'.shipping_id');
echo '<p>My shipping id : ' . var_dump($shipping_id)." - or ".$shipping_id = $app->getUserState( HIKASHOP_COMPONENT.'.shipping_id')."</p>";
echo '<p>shipping methode '. $shipping_method=$app->getUserState( HIKASHOP_COMPONENT.'.shipping_method' )."</p>";
}
// my new code
?>
<?php
if(empty($this->rows)) {rows)) {
but I cant find it...
Can you help me
thanks
Please Log in or Create an account to join the conversation.
12 years 1 month ago - 12 years 1 month ago #173787
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic how can I find a value of shipping id
Hi,
I am sorry but I don't understand your question or the code you wrote.
As the debug message is telling you, the variable $shipping_id contains an array with your data ; you got your shipping ids so I don't see any kind of problem (except that you want to display an array as a string so you got the PHP notice)
Regards,
I am sorry but I don't understand your question or the code you wrote.
As the debug message is telling you, the variable $shipping_id contains an array with your data ; you got your shipping ids so I don't see any kind of problem (except that you want to display an array as a string so you got the PHP notice)
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 12 years 1 month ago by Jerome.
Please Log in or Create an account to join the conversation.
Time to create page: 0.058 seconds