how can I find a value of shipping id

  • Posts: 98
  • Thank you received: 1
10 years 7 months ago #173785

-- 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

<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.

  • Posts: 26242
  • Thank you received: 4036
  • MODERATOR
10 years 7 months ago #173787

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 10 years 7 months ago by Jerome.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum