Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SPPC and selling downloads


Guest

Recommended Posts

I have been using SPPC successfully for some time now.

 

However, I would like to add software for sale by download.

 

When I tried to enable downloads in the Configuration I found that on adding products they would not save but gave errors.

 

Before I proceed further I wondered whether SPPC would have affected this feature in any way.

 

Regards,

peter_of_stirling

Link to comment
Share on other sites

I have been using SPPC successfully for some time now.

 

However, I would like to add software for sale by download.

 

When I tried to enable downloads in the Configuration I found that on adding products they would not save but gave errors.

 

Before I proceed further I wondered whether SPPC would have affected this feature in any way.

A. It is more wise to ask questions about a contribution in its own thread.

B. Download is an attribute, so how can it give errors on categories.php?

C. Not knowing what errors you get doesn't help.

D. Did you add any contributions for downloads in categories.php?

Link to comment
Share on other sites

Hi Jan,

 

I am currently using OSCommerce-2.2ms2-060817 with SPPC-4.15

 

I went into Admin, Configuration, Download, Enable Download set to true, and Download by Redirect set to true.

 

Then I went to Catalog, Categories/Products and thought that I was entering a new product. However, when I tried to enter a new product then went to Preview I get

 

Warning Variable passed to each() is not an array or object in

/vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 17

 

Warning Variable passed to each() is not an array or object in

/vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 18

 

I wonder what could have changed since I entered the last product?

 

Regards,

peter_of_stirling

Link to comment
Share on other sites

Then I went to Catalog, Categories/Products and thought that I was entering a new product. However, when I tried to enter a new product then went to Preview I get

 

Warning Variable passed to each() is not an array or object in

/vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 17

 

Warning Variable passed to each() is not an array or object in

/vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 18

 

I wonder what could have changed since I entered the last product?

Is it possible that your host changed the PHP-settings, so that you now need a register globals fix?

The preview starts with:

  } elseif ($action == 'new_product_preview') {
if (tep_not_null($HTTP_POST_VARS)) {
  $pInfo = new objectInfo($HTTP_POST_VARS);

Maybe a quick check would be to change these lines (around 690) to:

  } elseif ($action == 'new_product_preview') {
if (tep_not_null($_POST)) {
  $pInfo = new objectInfo($_POST);

That will not solve it, but would give at least other errors.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...