Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Seperate Pricing Per Customer v3.5


scendent

Recommended Posts

Hello Dave @IWAS,

this one is for 2.3.4 BS and standard (not BS):

Wholesale (SPPC lite)

it is only for one wholesale group, but installation is much, much easier than the old SPPC.

Edited by raiwa
Link to comment
Share on other sites

Thanks, I only have one other group, but I need it to work with the old sppc product format, specifically the database fields.  I updated all the other standard database fields, but I doubt anything in the SPPC or customer groups fields were changed.

I had SPPC on a 2.2rc2 site and I want to upload (hopefully with easypopulate) my products to the new 2.3.4 site.

Link to comment
Share on other sites

I got most to work in 2.3.4 but my version is jcommerce so all files are modified slightly to work as a joomla component.  My biggest problem is the login is not logging them in as their group and that file has the most conflicting code as it is a 2.3.3.4 addon, a 2.3.4 shop and there is login changes to pull from and update the joomla database too.

the login.php file is from the sppc add-on

 

login-jcommerce2.3.4.php

login.php

login-attempted-merge.php

Link to comment
Share on other sites

In login.php it has the right value for customer group

but when I register it to the session it is not passing it, am I missing something?

login.php

   $customer_id = $login_customer_id;
    tep_session_register('customer_id');

    $customer_default_address_id = $customer_info['customers_default_address_id'];
    tep_session_register('customer_default_address_id');

    $customer_first_name = $customer_info['customers_firstname'];
    tep_session_register('customer_first_name');

    $sppc_customer_group_id = $customer_info['customers_group_id'];
	//echo  $sppc_customer_group_id;die;
    tep_session_register('sppc_customer_group_id');
    tep_session_register('sppc_customer_group_show_tax');
    tep_session_register('sppc_customer_group_tax_exempt');
    if (tep_not_null($sppc_customer_specific_taxes_exempt)) {
       tep_session_register('sppc_customer_specific_taxes_exempt');
	}
    $customer_country_id = $customer_info['entry_country_id'];
    tep_session_register('customer_country_id');

    $customer_zone_id = $customer_info['entry_zone_id'];
    tep_session_register('customer_zone_id');

But when I echo it in index.php, it is null

top of index.php

// BOF Separate Pricing Per Customer
echo $_SESSION['customer_group_id'].'<BR>';
  if (isset($_SESSION['sppc_customer_group_id']) && $_SESSION['sppc_customer_group_id'] != '0') {
  //echo $_SESSION['sppc_customer_group_id'].'<BR>';
  $customer_group_id = $_SESSION['sppc_customer_group_id'];
  } else {
   $customer_group_id = '0';
  }
// EOF Separate Pricing Per Customer
echo $customer_group_id;
// the following cPath references come from application_top.php
  $category_depth = 'top';

 

 

Link to comment
Share on other sites

  • 1 year later...

I have a question about using my membership database to determine what group the user should be put in.

If this has already been asked sorry for the duplicate.

I have a membership database and would like to use that to determine what group (member or non-member) to base the price on.

Can this be done?  I am ok with PHP coding but can not determine where to add the link to my database.

Thanks for any help on this.

 

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