Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Optional Related Products, Version 4.0


Skittles

Recommended Posts

  • 4 months later...

Uploaded Version Phoenix 7.3 for Phoenix 1.0.5.4+:

Related Products Phoenix 7.3

 

- Updated for CE Phoenix 1.0.5.4+

- Updated content modules to abstract executable modules

- bootstrapped admin page

Link to comment
Share on other sites

  • 2 weeks later...

cm_pi_related_products.php cannot find the language file

--------------------------------------------------------------------------------------

if Use Random Display Order is set 'false" 

I get this

1054 - Unknown column 'pop_order_id' in 'order clause'

SELECT .................... 3'order by pop_order_id, pop_id limit 8

 

 

Link to comment
Share on other sites

31 minutes ago, rupruprup said:

cm_pi_related_products.php cannot find the language file

I don't see anything wrong. It works for me and the 3 language files are included. Check if it is inplace for your language.

33 minutes ago, rupruprup said:

if Use Random Display Order is set 'false" 

I get this

1054 - Unknown column 'pop_order_id' in 'order clause'

SELECT .................... 3'order by pop_order_id, pop_id limit 8

 

I can't reproduce this error. But you can try the following, line 42 change to:

      $orderBy .= (MODULE_CONTENT_PI_RELATED_PRODUCTS_RANDOMIZE == 'True')?'rand()':'prp.pop_order_id, prp.pop_id';

Anyway, the Phonix version info is wrong, it should say 1.0.7.4, but it breaks in 1.0.7.5.

I'll update ASAP

Link to comment
Share on other sites

4 minutes ago, raiwa said:

I don't see anything wrong. It works for me and the 3 language files are included. Check if it is inplace for your language.

it was in place and I can't find anything wrong too, but the module did not find the 'defines' 

I moved back to the old version, this works well with 1075 . The next tests have to wait a few days now ...

Link to comment
Share on other sites

It's not the same "cannot find the language files" and "did not find the definitions".

Which definitions? Please be precise and post the error messages.

EDIT: I believe you got the errors for these missing constants:

IS_PRODUCT_PRODUCTS_DISPLAY_ROW_SM
IS_PRODUCT_PRODUCTS_DISPLAY_ROW_MD
IS_PRODUCT_PRODUCTS_DISPLAY_ROW_LG
IS_PRODUCT_PRODUCTS_DISPLAY_ROW_XL

This happens in Phoenix 1.0.7.5 and is what I meant when I said it breaks. They are not language definitions.

 

Edited by raiwa
Link to comment
Share on other sites

I really meant language 'defines' , and I know what breaks in 1075, otherwise I could not run the older version on 1075

MODULE_CONTENT_PI_RELATED_PRODUCTS_TITLE
MODULE_CONTENT_PI_RELATED_PRODUCTS_DESCRIPTION

were not found, although the file was in place

Link to comment
Share on other sites

1 hour ago, rupruprup said:

if Use Random Display Order is set 'false" 

I get this

1054 - Unknown column 'pop_order_id' in 'order clause'

SELECT .................... 3'order by pop_order_id, pop_id limit 8

the happens when the product has no defined related products only

Link to comment
Share on other sites

39 minutes ago, rupruprup said:

I really meant language 'defines' , and I know what breaks in 1075, otherwise I could not run the older version on 1075

MODULE_CONTENT_PI_RELATED_PRODUCTS_TITLE
MODULE_CONTENT_PI_RELATED_PRODUCTS_DESCRIPTION

were not found, although the file was in place

Do you mean in admin? MODULE_CONTENT_PI_RELATED_PRODUCTS_DESCRIPTION is only used in admin.

NO idea then. In my store it works.

52 minutes ago, rupruprup said:

the happens when the product has no defined related products only

Doesn't show any error in my test store even without prelated products.

Link to comment
Share on other sites

Updated:

Related Products Phoenix 7.3.1

- Updated for CE Phoenix 1.0.7.5+
- fixed admin/related_products.php delete not working if confirmation switched on.
- Updated tpl files

 

Link to comment
Share on other sites

  • 2 months later...

Hi Rainer,

Thanks for the update. Just installed the above on Phoenix 1.0.7.9 and get the following error  :

PHP Fatal error:  Uncaught Error: Call to a member function get_product_id_list() on null in /xx/xx/xx/xx/includes/modules/content/shopping_cart/cm_sc_related_products.php:130
Stack trace:
#0 /xx/xx/xx/xx/includes/modules/content/shopping_cart/cm_sc_related_products.php(40): cm_sc_related_products->products_in_cart()
#1 /xx/xx/xx/xx/includes/system/versioned/1.0.7.6/osc_template.php(106): cm_sc_related_products->execute()
#2 /xx/xx/xx/xx/templates/default/includes/pages/shopping_cart.php(13): oscTemplate->getContent('shopping_cart')
#3 /xx/xx/xx/xx/shopping_cart.php(17): require('/homepages/11/d...')
#4 {main}
  thrown in /xx/xx/xx/xx/includes/modules/content/shopping_cart/cm_sc_related_products.php on line 130

line 130 is:

      // Get a list of the products in the cart from the cart class
      $ids_in_cart = $cart->get_product_id_list();


 

Link to comment
Share on other sites

Thanks. Added to my update list.

Is this only showing in an empty cart?

Edited by raiwa
Link to comment
Share on other sites

@artfulweb,

I updated my develop store to 1.0.7.9 and do not see this error. I tried all combinations.

It might be something with your store. Check your update.

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