nicolas wrote: However, note that once selected, a shipping method information is stored in the user session. So unless you change the product quantity or the address or logout/login, you won't see the new prices.
Hmm, okay... I'm not sure what this means. I have deactivated an automatic selection of the shipping method. I can see that the function "onShippingDisplay()" will be triggered 2 times (in case when the customer is not logged in), or it will be triggered 1 time when the customer is logged in.
Do I have to delete the browser cache or something between my debug sessions maybe?
I'll keep trying...
Another thing is: What do I have todo to store the settings? I now created a new module. In fact, I copied the existing "manual" plugin and changed all the XML "Manual" Names, including the filenames and the classname (plgHikashopshippingManual -> plgHikashopshippingSwissPostManual).
I changed 2 things in the "swisspostmanual_configuration.php" where I have no idea if it's correct:
From:
<a href="<?php echo hikashop_completeLink('plugins&plugin_type=shipping&task=edit&name='.$this->data['manual'].'&subtask=shipping_edit&shipping_id='.$rate->shipping_id);?>"><?php echo $rate->shipping_name;?></a>
<span class="spanloading"><?php echo $this->data['toggleClass']->delete($id,"manual-".$rate->shipping_id,'shipping',true); ?></span>
<input type="hidden" name="name" value="manual" />
To:
<a href="<?php echo hikashop_completeLink('plugins&plugin_type=shipping&task=edit&name='.$this->data['swisspostmanual'].'&subtask=shipping_edit&shipping_id='.$rate->shipping_id);?>"><?php echo $rate->shipping_name;?></a>
<span class="spanloading"><?php echo $this->data['toggleClass']->delete($id,"swisspostmanual-".$rate->shipping_id,'shipping',true); ?></span>
<input type="hidden" name="name" value="swisspostmanual" />
I can open/edit a configuration (in fact click "New"), but when I store it, the table with all configurations is empty. How does the storing mechanisms work or what do I have todo to store the settings? I couldn't figure that out till now