- Posts: 34
- Thank you received: 0
Coupon
Please Log in or Create an account to join the conversation.
Do you have some caching enabled on your website (in the joomla configuration or via the system cache plugin)?
Could you give a link to your website so that we can see that ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
by:
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
?>
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'.$url_itemid); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
in the file "coupon" of the view "checkout" vi the menu Display->Views and try again ?
Please Log in or Create an account to join the conversation.
Could you change the line:
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
by:
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
?>
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'.$url_itemid); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
in the file "coupon" of the view "checkout" vi the menu Display->Views and try again ?
To confirm,
replace:
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
with
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
?>
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'.$url_itemid); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
Please Log in or Create an account to join the conversation.
?>
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
to be replaced by:
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
?>
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'.$url_itemid); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
Please Log in or Create an account to join the conversation.
Since doing so adding a coupon has been real buggy. It often takes numerous goes to get it to actually add the coupon. Generally it just refreshes the same step in the checkout and looks like it has done nothing. When it finally does actually add the coupon it then automatically submits to the next step where I have payment. If you then go back in the checkout process there is no option to remove the coupon although it is still added to the order.
If I change the work flow to this login_address_shipping,payment_terms_coupon_confirm_cart_status_fields,end there is no issue with the coupon behaviour. You can add and remove coupons without a problem. The reason I cannot have this work flow is that the adding of a coupon deselects the shipping method and my payment methods heavily depend on the shipping method.
Can you please assist with this?
Please Log in or Create an account to join the conversation.
If you want, you could have the coupon view on both steps:
login_address_shipping_coupon,payment_terms_confirm_cart_coupon_status_fields,end
For the fact that the coupon is not working properly, that's because we didn't thought about having that view on a step without the cart view. The fix is easy, just add the line:
$this->assignRef('coupon',@$cart->coupon);
after the line:
$coupon_error_message = JRequest::getVar('coupon_error_message','');
in the file components/com_hikashop/views/checkout/view.html.php
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.