Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Optional Related Products, Version 4.0


Skittles

Recommended Posts

This is a great module. I just installed OS 2.34 and the module was included. When I clicked the "Upgrade Earlier Version to Version 4.0"

the Configuration page disappeared.

 

How do I delete the module so I can do a complete re-install?

Link to comment
Share on other sites

I also got this error:  1366 - Incorrect integer value: '' for column 'configuration_group_id' at row 1

INSERT INTO `configuration_group` VALUES ( '', 'Related Products', 'Optional Related Products module', '999', '1' )

[TEP STOP]

Link to comment
Share on other sites

Hello @@adanob,

 

Please use the latest version:

Related Products 6.2 BS

http://addons.oscommerce.com/info/9499

 

The database installation is integrated in the module installation and the configuration page is not used any more.

To remove all old configuration entries, search in your database in the configuration table for entries beginning with "RELATED_PRODUCTS_", use wildcard "like%".

Remove also in the configuration groups table "Related Products" group.

 

 

I do not understand this:

 

I just installed OS 2.34 and the module was included.

 

How was it included? Optional related products is an add-on and not included in a new 2.3.4 installation. I hope you used the 2.3.4 BS responsive community version for a new installation.

 

 

rgds

Rainer

Edited by raiwa
Link to comment
Share on other sites

  • 2 months later...

Hello @@Psytanium,

 

SOrry this is not yet possible from the admin page.

However you could filter (search) by product ids/ranges in the database table and then delete multiple items.

 

rgds

Rainer

Link to comment
Share on other sites

  • 2 weeks later...

Hello Rainer

 

Just tried to install Optional Related Products in my new store setup. 2.3.4.BS latest version from jburt - I checked the config and modifications twice and cleaned the config file in sql after the first try, copied all files again, but this error shows up, when I click in "catalog" on "relatet products"

 

Warning: require_once(DIR_WS_FUNCTIONSrelated_products_funcs.php): failed to open stream: No such file or directory in C:\xampp\htdocs\designshop\admin\optional_related_products.php on line 22

Fatal error: require_once(): Failed opening required 'DIR_WS_FUNCTIONSrelated_products_funcs.php' (include_path='\xampp\php\PEAR') in C:\xampp\htdocs\designshop\admin\optional_related_products.php on line 22

 

I have installed the 5.6 version from 3.Nov 2015 as I am not using the modular shopping cart.

 

Any clue what could produce this error? Any help would be greatly appreciated!

 

Kind regards - Felix

Whoever finds errors and misspellings in my postings can keep them  o:)

 

Moving from 2.2 MS to 2.3.4 BS EDGE - and I love this version!

 

I might show "online" all the time - but I might be away from my computer  ;)

Link to comment
Share on other sites

@@felix-swiss

 

If you are using the latest version of 2.3.4BS Edge, the developer(s) have removed many of the file path definitions, and have instead hard-coded the paths in the code. You have three options:

 

1) Install the compatibility add-on

 

http://addons.oscommerce.com/info/9506

 

 

2) Hard-code the paths into this add-on

 

 

3) Add the paths back to you /catalog/includes/configure.php file

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

(I'm sure someone will correct me if I am wrong :- )

 

HTH

 

Malcolm

Link to comment
Share on other sites

Hello Felix @@felix-swiss,

 

Please use the newest version Related Products 6.3 BS:

http://addons.oscommerce.com/info/9499

 

it's updated with hardcoded paths since version 6.2 and should be 100% compatible with the newest 2.3.4 BS EDGE version.

 

rgds

Rainer

Link to comment
Share on other sites

@@malcolm: Thank you for the suggestion! I thought it must be something like that.

 

@@Rainer: I will use that version instead. Thank you. Is the regular version the same as this module or do I "need" to go for the pro version?

Am trying as soon as possible.

 

@both :thanks for the quick response and help!!

 

Kind regards - Felix

Whoever finds errors and misspellings in my postings can keep them  o:)

 

Moving from 2.2 MS to 2.3.4 BS EDGE - and I love this version!

 

I might show "online" all the time - but I might be away from my computer  ;)

Link to comment
Share on other sites

@ Rainer: worked like a charm - thanks for the help

 

Kind regards - Felix

Whoever finds errors and misspellings in my postings can keep them  o:)

 

Moving from 2.2 MS to 2.3.4 BS EDGE - and I love this version!

 

I might show "online" all the time - but I might be away from my computer  ;)

Link to comment
Share on other sites

  • 1 year later...

@Dj-Viper I think you have been changing the images folder name ,  if  yes,,

then you have to change the folder name in

includes/modules/content/product_info/cm_pi_related_products.php

find this

tep_image('images/

and change images to your images folder name

and  same also in includes/modules/content/shopping_cart/cm_sc_related_products.php

 

Br
Omar

Get the latest Responsive osCommerce CE (community edition) here .

Link to comment
Share on other sites

  • 9 months later...

I notice the latest version outputs html regardless if related products are found. Adding this check addresses this:

		if (!empty($optional_rel_prods_content)) {
		ob_start();
        include('includes/modules/content/' . $this->group . '/templates/related_products.php');
        $template = ob_get_clean();

        $oscTemplate->addContent($template, $this->group);
		}

Also I believe this line of code should be inside a conditional statement:

$optional_rel_prods_content .= '<hr>';

And if updating to Bootstrap 4 all thumbnails should be switched to cards.

The water in a vessel is sparkling; the water in the sea is dark. The small truth has words which are clear; the great truth has great silence.

- Rabindranath Tagore

Link to comment
Share on other sites

@raiwa Yes, moving that bracket is more logical. Regarding the <hr> tag, I only have the image and product name enabled so I don't see the purpose of the line. Regardless, thanks for the great addons. Looking forward to the BS4 versions.

 

 

Edited by Smoky Barnable

The water in a vessel is sparkling; the water in the sea is dark. The small truth has words which are clear; the great truth has great silence.

- Rabindranath Tagore

Link to comment
Share on other sites

New version uploaded:

Related Products 6.6 BS


- Supressed any html output if no related products are available. Thanks to @Smoky Barnable for the advice
- conditioned <hr> tag if content is shown below.  Thanks to @Smoky Barnable for the advice
- updated template call and naming to 2.3.4.1. FROZEN standard
- changed module class names to match 2.3.4.1. FROZEN standard
- included references for 2.3.4.1 CE FROZEN to instructions

 

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