Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I installed the SPCC contribution for special pricing per category. Everything works fine when you are logged in with an account but when you are not logged in you get the following error. I don't want people to have to create an account. Can someone tell me how to fix this?

 

Fatal error: Call to undefined function: get_category() in /hsphere/local/home/aclema/affordableparties.com/catalog/includes/classes/shopping_cart.php on line 89

Posted
Fatal error: Call to undefined function: get_category() in /hsphere/local/home/aclema/affordableparties.com/catalog/includes/classes/shopping_cart.php on line 89

You get that error because you didn't add this piece of code to the class PriceFormatter.php

**ADD**
//   BOF Price Break for SPPC mod, price break per category
 function get_category() {
   return $this->category;
 }
//   EOF Price Break for SPPC mod, price break per category

This comes from the file price_break_per_category_instr.txt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...