Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Jigoshop Error: Your Cart is empty

Featured Replies

Hi everyone,

 

I installed Jogoshop for a friend' website and struggling to run it.

 

http://www.bumps2babesfitness.com/shop/

 

After add to cart/proceed to checkout/ Place order/ WARNING:

 

Warning: number_format() expects parameter 2 to be long. String given in /home/bumps2babes/public_html/wp-content/plugins/jigoshop/gateways/paypal.php on line 181

Warning: number_format() expects parameter 2 to be long. String given in /home/bumps2babes/public_html/wp-content/plugins/jigoshop/gateways/paypal.php on line 257

 

and Redirects to page Error detected: Your shopping cart is empty.

I checked the php file and here is line 181: 'amount' => number_format((float)$order->order_total, $this->decimals),

line 257 is :$paypal_args['amount_'.$item_loop] = number_format(apply_filters('jigoshop_paypal_adjust_item_price', $item['cost'], $item, 10, 2), $this->decimals); //Apparently, Paypal did not like "28.4525" as the amount. Changing that to "28.45" fixed the issue.

}

 

I have no php knowledge but I think in Jigoshop setting Price format is £0.00 but in product page is £0 I can't change it to 0.00 format,

Still not sure if this is an issue just a guess by me.

 

Any help really appreciated as nobody replied to my message on Jigoshop forum.

 

 

Many thanks

Aida

post-66187-0-85970800-1443939763_thumb.jpg

  • Author

I found my mistake :)

 

I havent define the number of decimal points in displayed prices in the Jigoshop setting :)

 

Happy days

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.