Zen Cart Logo

DUAL Pricing v2

Views: 363,318

Results 381 to 400 of 1,504
4 Jan 2009, 7:37 PM
#381
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

DUAL Pricing v2

Sorry I forgot that customers_whole is a varchar not an int value. which makes no sense to me but I haven't had the chance to change it yet... So here's the new code this will work, promise :)

'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION,
                            'customers_whole' => '1'
    );  
```The only difference is that now the value for customers_whole is enclosed in single quotes.
4 Jan 2009, 9:55 PM
#382
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,769
Plugin Contributions:
20

Re: DUAL Pricing v2

Noup, still the same... :cry:

After registration I still have to manually assign wholesale level 1.

Any other ideas?

4 Jan 2009, 10:12 PM
#383
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,769
Plugin Contributions:
20

Re: DUAL Pricing v2

Oh, BTW, one more question.

My English isn't that good so I have to describe the situation first.

A new customer creates an account. I change his account to Wholesale level = 1 immediately. He is still online and hasn't logged of. He doesn't get wholesale level 1 prices until he logs of and logs back in.

I would like the change to become effective immediately without log-off. Is that possible?

5 Jan 2009, 7:07 AM
#384
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

balihr:

Maybe there's a problem with using a template? I'm using gloss_black.

Is your cart using a template override for the file? If it is you would have a file located in the includes/modules/gloss_black/create_account.php and that's the one you would need to be changing.

The change I made makes a customers whole sale status equal to level one automatically. I checked it on my server and it seems to be working...

balihr:

A new customer creates an account. I change his account to Wholesale level = 1 immediately. He is still online and hasn't logged of. He doesn't get wholesale level 1 prices until he logs of and logs back in.

I would like the change to become effective immediately without log-off. Is that possible?

Yes that is possible. Install the next oldest version of this module. The draw back is that that version requires a lot more DB queries to work.

If your host has it you could try logging into PHPMyAdmin and working with it in there. you'd be changing the default value for customers_whole in your customers table to 1.

5 Jan 2009, 9:36 AM
#385
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,769
Plugin Contributions:
20

Re: DUAL Pricing v2

:frusty::frusty::frusty: I have a lot of learning left to do... I obviously didn't understand the basics of overriding. And i thought I did. :cry:

Yes, that's it! The file was in my gloss_black folder and i edited the default (basic) one. Sorry.

Just for the record - you're my hero! :smile: Thank you.

I'll try the other version in a few days. That would be 1.4.2, right? I'll come back with the results.

5 Jan 2009, 3:07 PM
#386
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

No worries... we all can learn a lot.

7 Jan 2009, 12:02 AM
#387
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,769
Plugin Contributions:
20

Re: DUAL Pricing v2

Just installed version 1.4.2.

Now it is exactly what i wanted! Immediately after registration my customers get wholesale level 1 and are able to see their prices right away.

It's incredible how this mod affects my sale...

All I can say to Madfastride is :clap::clap::clap::clap::clap:

Thank you very much! I only wish there were more people like you...

16 Jan 2009, 3:55 PM
#388
jwatt10k avatar

jwatt10k

New Zenner

Join Date:
Jun 2008
Posts:
6
Plugin Contributions:
0

Re: DUAL Pricing v2

I just installed zc 1.38a and ultimate seo urls 2.107 (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=231) and just tried to install Dual Pricing 1.5. I am getting blank pages on the front end. Everything in the admin section seems to work and the wholesale pricing shows up, but a category with only one product goes blank, the login screen goes blank, as does the shopping cart screen. Has anyone had this problem (completely blank white screen) or does anyone have ultimate seo and dual pricing installed together?

17 Jan 2009, 2:41 PM
#389
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

jwatt10k:

I just installed zc 1.38a and ultimate seo urls 2.107 (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=231) and just tried to install Dual Pricing 1.5. I am getting blank pages on the front end. Everything in the admin section seems to work and the wholesale pricing shows up, but a category with only one product goes blank, the login screen goes blank, as does the shopping cart screen. Has anyone had this problem (completely blank white screen) or does anyone have ultimate seo and dual pricing installed together?

The problem you are having and the solution is found here https://www.zen-cart.com/tutorials/index.php?article=82

Also, the two modules do work together.

18 Jan 2009, 12:52 PM
#390
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,769
Plugin Contributions:
20

Re: DUAL Pricing v2

me again... :blush:

so far i'm very satisfied with this mod, but i'd like to try something new.

i want customers to see both regular price and wholesale_1 price without login. if a customer doesn't log in, regular prices apply and if (s)he logs in, whole_1 prices apply.

also, what would be nice... A guest is on product_info page and sees "Regular price" and "Members price". A member is on product_info page and sees "Regular price" and "Your price".

20 Jan 2009, 5:24 PM
#391
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: DUAL Pricing v2

My wholesale pricing was working fine. now I cannot find where to change the customer to level 1 when I edit their account. this is the frist time I had a wholesale customer in a while.

The dual pricing was added in Oct. it was working ok. site: www---currysgiftshop com

20 Jan 2009, 7:13 PM
#392
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: DUAL Pricing v2

I reuploaded all the files, because I really installed the dual pricing in sept and I saw a update for Oct. Now when I edit a customer I can change to wholesale. my test customer. cannot login they get a HTTP 406 Internet Explorer cannot read this webpage format. now I don't know what to do.

21 Jan 2009, 3:07 AM
#393
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: DUAL Pricing v2

Can someone please help me with this problem. After reinstalling the dual pricing, I got a message that the tables already exist. I made a ticket for my host to check out the HTTP 406 Not Acceptable. The reply was "I see that the domain is hitting a mod_security rule." they fix that but I was still getting the HTTP 406 I sent them a test login. This is the reply I got back.
"I checked the site and it looks like it is being caused by a coding issue The url is trying to send the value for zenid twice. If I remove the second one, and just go to the url I am able to login. Have you tried talking to the script author about this?

This is the login url:
https:// https://www.currysgiftshop.com/index/? zenid=e3e89998f3972f5f8aa68185d7194694?zenid=e3e89998f3972f5f8aa68185d7194694.

I don't know if I am In right place. as far as I know it didn happen until I redownload dual pricing. I also have the simple seo.

21 Jan 2009, 6:32 PM
#394
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

weezee,

I looked at my copy of the file that is sending the customer_id headers and I can't seem to find anything that would be setting the value twice. Maybe you could send me a copy of your file located at includes/modules/pages/login/header_php.php

Cheers

22 Jan 2009, 11:13 PM
#395
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: DUAL Pricing v2

I tried to send this to you but it was to many characters, I didn't know what else to do but post it here:

<?php /** * Login Page * * @package page * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: header_php.php 6783 2007-08-23 21:16:16Z wilt $ */ // This should be first line of the script: $zco_notifier->notify('NOTIFY_HEADER_START_LOGIN'); // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started) if ($session_started == false) { zen_redirect(zen_href_link(FILENAME_COOKIE_USAGE)); } // if the customer is logged in already, redirect them to the My account page if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '') { zen_redirect(zen_href_link(FILENAME_ACCOUNT, '', 'SSL')); } require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CREATE_ACCOUNT)); $error = false; if (isset($_GET['action']) && ($_GET['action'] == 'process')) { $email_address = zen_db_prepare_input($_POST['email_address']); $password = zen_db_prepare_input($_POST['password']); /* Privacy-policy-read does not need to be checked during "login" if (DISPLAY_PRIVACY_CONDITIONS == 'true') { if (!isset($_POST['privacy_conditions']) || ($_POST['privacy_conditions'] != '1')) { $error = true; $messageStack->add('create_account', ERROR_PRIVACY_STATEMENT_NOT_ACCEPTED, 'error'); } } */ if ((!isset($_SESSION['securityToken']) || !isset($_POST['securityToken'])) || ($_SESSION['securityToken'] !== $_POST['securityToken'])) { $error = true; $messageStack->add('login', ERROR_SECURITY_ERROR); } else { // Check if email exists $check_customer_query = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id, customers_authorization, customers_referral, customers_whole FROM " . TABLE_CUSTOMERS . " WHERE customers_email_address = :emailAddress"; $check_customer_query =$db->bindVars($check_customer_query, ':emailAddress', $email_address, 'string'); $check_customer = $db->Execute($check_customer_query); if (!$check_customer->RecordCount()) { $error = true; $messageStack->add('login', TEXT_LOGIN_ERROR); } elseif ($check_customer->fields['customers_authorization'] == '4') { // this account is banned $zco_notifier->notify('NOTIFY_LOGIN_BANNED'); $messageStack->add('login', TEXT_LOGIN_BANNED); } else { // Check that password is good if (!zen_validate_password($password, $check_customer->fields['customers_password'])) { $error = true; $messageStack->add('login', TEXT_LOGIN_ERROR); } else { if (SESSION_RECREATE == 'True') { zen_session_recreate(); } $check_country_query = "SELECT entry_country_id, entry_zone_id FROM " . TABLE_ADDRESS_BOOK . " WHERE customers_id = :customersID AND address_book_id = :addressBookID"; $check_country_query = $db->bindVars($check_country_query, ':customersID', $check_customer->fields['customers_id'], 'integer'); $check_country_query = $db->bindVars($check_country_query, ':addressBookID', $check_customer->fields['customers_default_address_id'], 'integer'); $check_country = $db->Execute($check_country_query); $_SESSION['customer_id'] = $check_customer->fields['customers_id']; $_SESSION['customer_default_address_id'] = $check_customer->fields['customers_default_address_id']; $_SESSION['customers_authorization'] = $check_customer->fields['customers_authorization']; $_SESSION['customer_first_name'] = $check_customer->fields['customers_firstname']; $_SESSION['customer_last_name'] = $check_customer->fields['customers_lastname']; $_SESSION['customer_country_id'] = $check_country->fields['entry_country_id']; $_SESSION['customer_zone_id'] = $check_country->fields['entry_zone_id']; $_SESSION['customer_whole'] = $check_customer->fields['customers_whole']; $sql = "UPDATE " . TABLE_CUSTOMERS_INFO . " SET customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 WHERE customers_info_id = :customersID"; $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer'); $db->Execute($sql); $zco_notifier->notify('NOTIFY_LOGIN_SUCCESS'); // bof: contents merge notice // save current cart contents count if required if (SHOW_SHOPPING_CART_COMBINED > 0) { $zc_check_basket_before = $_SESSION['cart']->count_contents(); } // bof: not require part of contents merge notice // restore cart contents $_SESSION['cart']->restore_contents(); // eof: not require part of contents merge notice // check current cart contents count if required if (SHOW_SHOPPING_CART_COMBINED > 0 && $zc_check_basket_before > 0) { $zc_check_basket_after = $_SESSION['cart']->count_contents(); if (($zc_check_basket_before != $zc_check_basket_after) && $_SESSION['cart']->count_contents() > 0 && SHOW_SHOPPING_CART_COMBINED > 0) { if (SHOW_SHOPPING_CART_COMBINED == 2) { // warning only do not send to cart $messageStack->add_session('header', WARNING_SHOPPING_CART_COMBINED, 'caution'); } if (SHOW_SHOPPING_CART_COMBINED == 1) { // show warning and send to shopping cart for review $messageStack->add_session('shopping_cart', WARNING_SHOPPING_CART_COMBINED, 'caution'); zen_redirect(zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')); } } } // eof: contents merge notice if (sizeof($_SESSION['navigation']->snapshot) > 0) { // $back = sizeof($_SESSION['navigation']->path)-2; //if (isset($_SESSION['navigation']->path[$back]['page'])) { // if (sizeof($_SESSION['navigation']->path)-2 > 0) { $origin_href = zen_href_link($_SESSION['navigation']->snapshot['page'], zen_array_to_string($_SESSION['navigation']->snapshot['get'], array(zen_session_name())), $_SESSION['navigation']->snapshot['mode']); // $origin_href = zen_back_link_only(true); $_SESSION['navigation']->clear_snapshot(); zen_redirect($origin_href); } else { zen_redirect(zen_href_link(FILENAME_DEFAULT, '', $request_type)); } } } } } if ($error == true) { $zco_notifier->notify('NOTIFY_LOGIN_FAILURE'); } $breadcrumb->add(NAVBAR_TITLE); // Check for PayPal express checkout button suitability: $paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True'); // Check for express checkout button suitability: $ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0)); // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_LOGIN'); ?>

I uninstalled the dual pricing and installed it again . now I only have one url it so slow it times out.

I found some .htaccess I don't know what they mean. one in my Public HTML and one in my Include folder.# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $

This is used with Apache WebServers

The following blocks direct HTTP requests in this directory recursively

For this to work, you must include the parameter 'Limit' to the AllowOverride configuration

Example:

#<Directory "/usr/local/apache/htdocs">

AllowOverride Limit

'All' with also work. (This configuration is in your apache/conf/httpd.conf file)

This does not affect PHP include/require functions

Example: http://server/catalog/includes/application_top.php will not work

<Files *.php>
Order Deny,Allow
Deny from all
</Files>
and

public Html:

<IfModule mod_suphp.c> suPHP_ConfigPath /home/currye/php.ini <Files php.ini> order allow,deny deny from all </Files> </IfModule>

I know this is very long but if you could get someone to remove it.

Thanks.

26 Jan 2009, 3:47 AM
#396
rleepac avatar

rleepac

New Zenner

Join Date:
Jan 2009
Posts:
44
Plugin Contributions:
0

Re: DUAL Pricing v2

I love this mod! I have a question though. I'm using some quantity discounts set up in the admin section but I don't want it to apply to my wholesale customers. How do I do that? I only want the quantity discounts to apply to full retail customers. Can anyone help me here?

27 Jan 2009, 5:43 AM
#397
rleepac avatar

rleepac

New Zenner

Join Date:
Jan 2009
Posts:
44
Plugin Contributions:
0

Re: DUAL Pricing v2

rleepac:

I love this mod! I have a question though. I'm using some quantity discounts set up in the admin section but I don't want it to apply to my wholesale customers. How do I do that? I only want the quantity discounts to apply to full retail customers. Can anyone help me here?

I figured it out. I don't know if it's the right way, but I added an attribute for the qty like "case of 12" and then in the trade box I put the wholesale prices. Retail customers would pay 15.00 and in the trade box for my 2 levels of wholesale customers I put 10.92,12.67 and that did the trick.

27 Jan 2009, 5:45 AM
#398
rleepac avatar

rleepac

New Zenner

Join Date:
Jan 2009
Posts:
44
Plugin Contributions:
0

Re: DUAL Pricing v2

Veronika7747:

i found it.. one line in shopping_cart.php ...

How exactly did you fix this? I'm having the same issue...

Thanks in advance!

29 Jan 2009, 5:22 AM
#399
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

rleepac:

How exactly did you fix this? I'm having the same issue...

Thanks in advance!

I don't know if a response is coming since that post was over a year ago. I'd start by checking all you lines of code in your shopping_cart.php file. Are you using something like WinMerge or moving the entire file over?

Cheers

2 Feb 2009, 4:49 AM
#400
rleepac avatar

rleepac

New Zenner

Join Date:
Jan 2009
Posts:
44
Plugin Contributions:
0

Re: DUAL Pricing v2

How do I dis-allow my wholesale customers from receiving quantity discounts? I only want those to apply to the retail customers.

Thanks!