403 Error after klick on Checkout

  • Posts: 73
  • Thank you received: 0
  • Hikashop Essential
13 years 2 months ago #25197

Hello,

after updating from hikashop 1.4.9 to 1.5.3 I have some problems. When I klick on the button "checkout" in the cart module, then I get a 403 error because hika want to load the site:

mydomian.de/website/shop-bausaetze/led-s...duct/updatecart.html

But this don't exist. So what to do? Please help me because this way my shop is down :(

Regards, Benny.

Last edit: 13 years 2 months ago by benkly.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25202

Hi,

I'm not following you. HikaShop wants to go to the website mydomain.de ?
We can't help you if we can't see the problem on your website.

However, 403 errors are usually linked to SEF so you might want to try to turn off SEF temporarily in joomla.

Also, if you had links in hard written in menus or joomla articles, the SEF system changed a bit since your version in order to make the URLs shorter so you might have to change those if you put the URLs already SEFed instead of inserting the non SEFed URLs.

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

  • Posts: 73
  • Thank you received: 0
  • Hikashop Essential
13 years 2 months ago #25204

Hello,

ok, my site is:

www.eiwomisa.de

On the left are the products, put something in the cart and try to checkout by the "kasse" button. Then you should see the problem. The only thing I did was to update the hikashop to the new version, before that everything was fine....

Regards, Benny.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25205

I just tried on your website but everything is working fine...

You should try with another browser/clean your cache, or something like that.

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

  • Posts: 73
  • Thank you received: 0
  • Hikashop Essential
13 years 2 months ago #25212

Hello,

ok, it was the cache-problem. But now I have another problem. Again the prices in the cart are displayed without taxes, but I need them with taxes and the old methode you told me once don't work anymore. How can I change this now?

Regards, Benny.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25226

Hi,

The method should be the same as before. I don't recall the method I told you. Could you refresh my mind ?

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

  • Posts: 73
  • Thank you received: 0
  • Hikashop Essential
13 years 2 months ago #25284

Hello,

yes, I know how we did that last time. I had to change something in the cart-file of the checkout view. Here is my file but the last trick don't work, still all prices are without tax in the cart listing.

<?php
/**
 * @package		HikaShop for Joomla!
 * @version		1.5.3
 * @author		hikashop.com
 * @copyright	(C) 2010-2011 HIKARI SOFTWARE. All rights reserved.
 * @license		http://www.hikashop.com/commercial_license.php
 */
defined('_JEXEC') or die('Restricted access');
?>
<?php
$this->setLayout('listing_price');
$this->params->set('show_quantity_field', 0);
$comp_description = $this->params->get('comp_description');
if(empty($comp_description)){
	$this->params->set('comp_description',JText::_('CART_EMPTY'));
}
?>
<div id="hikashop_checkout_cart" class="hikashop_checkout_cart">
	<?php
	if(empty($this->rows)){
		echo $this->params->get('comp_description');
	}else{
		if($this->config->get('print_cart',0)&&JRequest::getVar('tmpl','')!='component'){ ?>
			<div class="hikashop_checkout_cart_print_link">
				<a title="<?php echo JText::_('HIKA_PRINT');?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('checkout&task=printcart',true); ?>">
					<img src="<?php echo HIKASHOP_IMAGES; ?>print.png" alt="<?php echo JText::_('HIKA_PRINT');?>"/>
				</a>
			</div>
		<?php }
		foreach($this->rows as $i => $row){
			if(empty($row->cart_product_quantity)) continue;
			if(!empty($row->product_min_per_order)){
				if($row->product_min_per_order>$row->cart_product_quantity){
					$this->nextButton = false;
					$app =& JFactory::getApplication();
					$app->enqueueMessage(JText::sprintf('YOU_NEED_TO_ORDER_AT_LEAST_X_X',$row->product_min_per_order,$row->product_name));
				}
			}
		}
	?>
	<br/>
		<table width="100%">
			<thead>
				<tr>
					<th id="hikashop_cart_product_name_title" class="hikashop_cart_product_name_title hikashop_cart_title">
						<?php echo JText::_('CART_PRODUCT_NAME'); ?>
					</th>
					<th id="hikashop_cart_product_price_title" class="hikashop_cart_product_price_title hikashop_cart_title">
						<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>
					</th>
					<th id="hikashop_cart_product_quantity_title" class="hikashop_cart_product_quantity_title hikashop_cart_title">
						<?php echo JText::_('PRODUCT_QUANTITY'); ?>
					</th>
					<th id="hikashop_cart_product_total_title" class="hikashop_cart_product_total_title hikashop_cart_title">
						<?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?>
					</th>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan="4">
						<hr></hr>
					</td>
				</tr>
				<?php if(!empty($this->coupon) || !empty($this->shipping)){
					?>
				<tr>
					<td>
					</td>
					<td>
					</td>
					<td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title">
						<?php echo JText::_('HIKASHOP_TOTAL'); ?>
					</td>
					<td class="hikashop_cart_subtotal_value">
					<?php
						$this->row=$this->total;
						echo $this->loadTemplate();
					?>
					</td>
				</tr>
				<?php }
				if(!empty($this->coupon)){
					?>
					<tr>
						<td>
						</td>
						<td>
						</td>
						<td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title">
							<?php echo JText::_('HIKASHOP_COUPON'); ?>
						</td>
						<td class="hikashop_cart_coupon_value" >
							<span class="hikashop_checkout_cart_coupon">
							<?php
								echo $this->currencyHelper->format(@$this->coupon->discount_value*-1,@$this->coupon->discount_currency_id);
							?>
							</span>
						</td>
					</tr>
				<?php
				}
				$taxes = round($this->full_total->prices[0]->price_value_with_tax-$this->full_total->prices[0]->price_value,$this->currencyHelper->getRounding($this->full_total->prices[0]->price_currency_id));
				if(!empty($this->shipping)){
					?>
					<tr>
						<td>
						</td>
						<td>
						</td>
						<td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title">
							<?php echo JText::_('HIKASHOP_SHIPPING'); ?>
						</td>
						<td class="hikashop_cart_shipping_value" >
							<span class="hikashop_checkout_cart_shipping">
							<?php
								if(bccomp($taxes,0,5)==0){
									echo $this->currencyHelper->format(@$this->shipping->shipping_price,$this->shipping->shipping_currency_id);
								}else{
									echo $this->currencyHelper->format(@$this->shipping->shipping_price_with_tax,$this->shipping->shipping_currency_id);
								}
							?>
							</span>
						</td>
					</tr>
					<?php
				}
				if(bccomp($taxes,0,5)){ ?>
				<tr>
					<td>
					</td>
					<td>
					</td>
					<td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
						<?php echo JText::_('TAXES'); ?>
					</td>
					<td class="hikashop_cart_tax_value">
						<span class="hikashop_checkout_cart_taxes">
						<?php
							echo $this->currencyHelper->format($taxes,$this->full_total->prices[0]->price_currency_id);
						?>
						</span>
					</td>
				</tr>
				<?php }?>
				<tr>
					<td>
					</td>
					<td>
					</td>
					<td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title">
						<?php echo JText::_('HIKASHOP_FINAL_TOTAL'); ?>
					</td>
					<td class="hikashop_cart_total_value">
						<span class="hikashop_checkout_cart_final_total">
						<?php
							echo $this->currencyHelper->format($this->full_total->prices[0]->price_value_with_tax,$this->full_total->prices[0]->price_currency_id);
						?>
						</span>
					</td>
				</tr>
			</tfoot>
			<tbody>
				<?php
					$k = 0;
					foreach($this->rows as $i => $row){
						if(empty($row->cart_product_quantity)) continue;
						?>
						<tr class="<?php echo "row$k"; ?>">
							<td class="hikashop_cart_product_name_value">
								<p class="hikashop_cart_product_name">
									<a href="<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id);?>" ><?php echo $row->product_name; ?></a>
								</p>
								<p class="hikashop_cart_product_custom_item_fields">
								<?php
								if(hikashop_level(2) && !empty($this->extraFields['item'])){
									foreach($this->extraFields['item'] as $field){
										$namekey = $field->field_namekey;
										if(empty($row->$namekey)) continue;
										echo '<p class="hikashop_cart_item_'.$namekey.'">'.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$row->$namekey).'</p>';
									}
								}?>
								</p>
							</td>
							<td class="hikashop_cart_product_price_value">
								<?php
									$this->row=&$row;
									$this->unit=true;
									echo $this->loadTemplate();
								?>
							</td>
							<td class="hikashop_cart_product_quantity_value">
								<input id="hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>" type="text" name="item[<?php echo $row->cart_product_id;?>]" class="hikashop_product_quantity_field" value="<?php echo $row->cart_product_quantity; ?>" />
								<div class="hikashop_cart_product_quantity_refresh">
									<a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>'); if (qty_field && qty_field.value != '<?php echo $row->cart_product_quantity; ?>') qty_field.form.submit(); return false;">
										<img src="<?php echo HIKASHOP_IMAGES . 'refresh.png';?>" border="0" alt="Refresh information" />
									</a>
								</div>
								<?php if($this->params->get('show_delete',1)){ ?>
									<div class="hikashop_cart_product_quantity_delete">
										<a href="<?php echo hikashop_completeLink('product&task=updatecart&product_id='.$row->product_id.'&quantity=0&return_url='.urlencode(base64_encode(urldecode($this->params->get('url'))))); ?>" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>'); if(qty_field){qty_field.value=0; qty_field.form.submit();} return false;" >
											<img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" border="0" alt="remove product" />
										</a>
									</div>
								<?php } ?>
							</td>
							<td class="hikashop_cart_product_total_value">
								<?php
									$this->row=&$row;
									$this->unit=false;
									echo $this->loadTemplate();
								?>
							</td>
						</tr>
						<?php
						$k = 1-$k;
					}
				?>
			</tbody>
		</table>
		<?php
		if($this->params->get('show_quantity')){ ?>
			<noscript>
				<input id="hikashop_checkout_cart_quantity_button" class="button" type="submit" name="refresh" value="<?php echo JText::_('REFRESH_CART');?>"/>
			</noscript>
		<?php }
	} ?>
</div>

Regards, Benny.

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

  • Posts: 73
  • Thank you received: 0
  • Hikashop Essential
13 years 2 months ago #25285

Hello again,

I don't know why but I cannot copy all the text here, but the last trick you said:

Could you go in the menu Display->Views and edit the file shipping of the view checkout ?

There, change the code
Code:
if(bccomp($taxes,0,5)){
to
Code:
if(bccomp($taxes,0,5)==0){

That will display the taxed price when a tax is applied to the shipping price on the shipping selection view.




Hehe, I found it! Its the same change like the first one you said:

Code:

if(bccomp($taxes,0,5)){


to

Code:

if(bccomp($taxes,0,5)==0){


But this time in the view -> checkout - cart


Does not work :(

Regards, Benny.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25286

If you want to show all the product prices with the tax on the checkout, that's not the modification to make. That modification is already done in the latest versions of HikaShop.

What you could try to do is to add the code below after the first <?php tag of the same file:
$this->params->set('price_with_tax', 1);

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

Time to create page: 0.078 seconds
Powered by Kunena Forum