Add to cart button disappeared?

  • Posts: 2
  • Thank you received: 0
13 years 10 months ago #4471

Hi guys,

I've used Hikashop in the past and it worked great. I've just started building something new and have paired Hikashop with the latest version of Joomla. Just to be sure, I redid the refresher on how to setup the first purchase, except this time, after I've updated the shipping and payment methods, the "add to cart" button doesn't show up on the front end. Is this a feature that's been moved to the business version now or am I missing something..?

Thanks for any insight!

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
13 years 10 months ago #4473

Hi,

I'm not sure I understand. The 'add to cart' button is on the product page/products listing and unrelated to shipping and payment methods. It must be something else which caused the 'add to cart' button to disapear. For exemple, if you removed the prices of the product or if you activated the catalogue mode in the config under the tabd display.
It could also happen if you added characteristics to your product in several times and didn't manage your variants so that the variants reflects the characteristics (you would have a "no values found" for the characteristic on the product page, in that case.

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

  • Posts: 2
  • Thank you received: 0
13 years 10 months ago #4500

Hi Nicolas,

You're the man. You're right it was a combination of a few elements of the above. Thanks!

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 months ago #63932

I've updated from 1.5.8 version to 1.6.0 and add to cart button disappeared. Whats that about?

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 months ago #64129

In the display tab of the configuration, you can turn it back on.

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 months ago #64138

it's strange that after update something don't work. My local payment plugin doesn't work with new version too...

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 months ago #64198

What payment plugin are you using ?

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 months ago #64270

local - WebToPay (webtopay.com)
support.webtopay.com/index.php?/webtopay...le/View/90/35/joomla
if someone can fix this and make this plugin work with newest hikashop, i'm ready for some small donation.

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 months ago #64392

Could you give more information on what is the problem ?
Do you have error messages ?

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 months ago #64416

something is about total amount, its not in correct way. I've restored my server to last good config, so can not tell exactly. But if you need i can do it again and post all messages

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 months ago #64545

If we don't have the precise error it won't be possible to help you. If you want us to help you, we would need to know that at least.

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

  • Posts: 10
  • Thank you received: 0
12 years 1 month ago #67984

Hey Nicolas, I have the same problem as eyoung, my add to cart button suddenly disappered. I have checked these things you mention in your post, but it doesnt seem to bring the add-button back. I have been adding som multi-lingual text today, using FAlang, do you think this can have something to do with it?

Kind regards,

Gryttn

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 1 month ago #68143

Hi,

That are several options controlling the display of the add to cart button.
Check also the "show add to cart button" option of the Display tab of the configuration. It should be turned on.

I don't see how it could be related to Falang.

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 3 weeks ago #71438

nicolas wrote: If we don't have the precise error it won't be possible to help you. If you want us to help you, we would need to know that at least.

Nicolas, here is the error (the real amount shown in frontpage is 2,65):




here is the code, that error is pointing at:
<?php
	defined('_JEXEC') or die('Restricted access');
?>
<style type="text/css">

#w2pbutton {
 width: 167px; 
 height: 25px; 
 background: url('https://www.mokejimai.lt/payment/m/m_images/wfiles/i56je3562.png') no-repeat;
 border: none;
 cursor: pointer;
 margin: 20px 0;
}

</style>

<div class="hikashop_webtopay_end" id="hikashop_webtopay_end">
	<span id="hikashop_webtopay_end_message" class="hikashop_webtopay_end_message">
		<?php echo JText::sprintf('PLEASE_WAIT_BEFORE_REDIRECTION_TO_X',$method->payment_name).'<br/>'. JText::_('CLICK_ON_BUTTON_IF_NOT_REDIRECTED');?>
	</span>
	<span id="hikashop_paypal_end_spinner" class="hikashop_paypal_end_spinner">
		<img src="<?php echo HIKASHOP_IMAGES.'spinner.gif';?>" />
	</span>
	<br/>
	<form id="hikashop_webtopay_form" name="hikashop_webtopay_form" action="https://www.mokejimai.lt/pay/" method="post">
		<input id="w2pbutton" value="" type="submit" alt="<?php echo JText::_('PAY_NOW');?>" />
		<?php
			foreach( $request as $name => $value ) {
				echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars((string)$value).'" />';
			}
			$doc =& JFactory::getDocument();
			$doc->addScriptDeclaration("do_nothing( function() {document.getElementById('hikashop_webtopay_form').submit();});");
			JRequest::setVar('noform',1);
		?>
	</form>
</div>

Attachments:
Last edit: 12 years 3 weeks ago by arnask.

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 3 weeks ago #71523

It means that $request doesn't exist.
That should be defined in the webtopay.php file. As you didn't provide it I can't see why that happens. Could you attach that file too ?

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 3 weeks ago #71550

nicolas wrote: It means that $request doesn't exist.
That should be defined in the webtopay.php file. As you didn't provide it I can't see why that happens. Could you attach that file too ?

nicolas, attached all files. Please help, because with the previous version of hikashop was everything ok.

Attachments:

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 3 weeks ago #71731

The problem comes from that line of code:
'amount' => 100*$order->order_full_price,
in the file webtopay.php
It should actually be:
'amount' => (int)100*$order->order_full_price,

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 3 weeks ago #71766

nicolas wrote: The problem comes from that line of code:
'amount' => 100*$order->order_full_price,
in the file webtopay.php
It should actually be:
'amount' => (int)100*$order->order_full_price,

that doesn't work.
But if i put
100*(int)$order->order_full_price
than it goes through process but instead of 2.65 price, webtopay.com receives only 2 and emails me an error message.

The following user(s) said Thank You: nicolas

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 3 weeks ago #72114

I contacted webtopay.com so that they can fix that on their end.

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 weeks ago #72404

nicolas wrote: I contacted webtopay.com so that they can fix that on their end.

i've contacted them long time ago and they said that with previous version of hikashop was everything ok, so its hikashop's fault :)
it seams im now in very good position :(

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

Time to create page: 0.129 seconds
Powered by Kunena Forum