My code from old jigo don’t work
-
I have this code in old jigo, and now i have jigo-ecommerce
code:
<p class="koszyk"><?php echo sprintf(_n('%d produkt - ', '%d produktów - ', jigoshop_cart::$cart_contents_count, 'avtdr'), jigoshop_cart::$cart_contents_count); echo jigoshop_cart::get_cart_total(); ?></p>
This code show in template how many products are in cart and how many cost.
now i have error:
Fatal error: Uncaught Error: Class ‘jigoshop_cart’ not found in C:\xampp\htdocs\portal\wp-content\themes\mytheme\header.php:38 Stack trace: #0 C:\xampp\htdocs\portal\wp-includes\template.php(684): require_once() #1 C:\xampp\htdocs\portal\wp-includes\template.php(643): load_template(‘C:\\xampp\\htdocs…’, true) #2 C:\xampp\htdocs\portal\wp-includes\general-template.php(45): locate_template(Array, true) #3 C:\xampp\htdocs\portal\wp-content\themes\mytheme\jigoshop\layout\default.php(5): get_header(‘shop’) #4 C:\xampp\htdocs\portal\wp-content\plugins\jigoshop-ecommerce\src\Jigoshop\Helper\Render.php(40): require(‘C:\\xampp\\htdocs…’) #5 C:\xampp\htdocs\portal\wp-content\plugins\jigoshop-ecommerce\src\Jigoshop\Core\Template.php(87): Jigoshop\Helper\Render::output(‘layout/default’, Array) #6 C:\xampp\htdocs\portal\wp-includes\class-wp-hook.php(298): Jigoshop\Core\Template->process(‘default’) #7 C:\xampp\htdocs\portal\wp-includes\plugin.php(203): WP_Hook->apply_filters(‘C:\\xampp\\htdocs…’, Array) #8 C:\xampp\htdocs\portal\ in C:\xampp\htdocs\portal\wp-content\themes\mytheme\header.php on line 38
please help me ??
- The topic ‘My code from old jigo don’t work’ is closed to new replies.