Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mroing

Archived
  • Posts

    8
  • Joined

  • Last visited

Everything posted by mroing

  1. I have a BIG problem with PWA! I run osCommerce with tax on as standard. I also have a Customer group function but I do not think this is the cause of the problem. The problem is that when someone is logged in with PWA function every price in the site is corrupted! Prices show witout tax!!? Does anyone know about this problem? have a look at www.golvvarmebutiken.se/catalog Only in Swedish sorry about this. PLEASE NOTE! the store is live! Best regards/ Martin
  2. I actually goot it working now! I made an extra if part in the "if all fails" part according to the following code: } else { // default if ($customer_id == '0') { $customer_payment_query = tep_db_query("select cg.group_payment_allowed as payment_allowed from " . TABLE_CUSTOMERS_GROUPS . " cg where cg.customers_group_id = '0'"); if ($customer_payment = tep_db_fetch_array($customer_payment_query) ) { if (tep_not_null($customer_payment['payment_allowed'])) { $temp_payment_array = explode(';', $customer_payment['payment_allowed']); $installed_modules = explode(';', MODULE_PAYMENT_INSTALLED); for ($n = 0; $n < sizeof($installed_modules); $n++) { // check to see if a payment method is not de-installed if ( in_array($installed_modules[$n], $temp_payment_array ) ) { $payment_array[] = $installed_modules[$n]; } } // end for loop $this->modules = $payment_array; } } } else { $this->modules = explode(';', MODULE_PAYMENT_INSTALLED); } } // EOF Separate Pricing Per Customer if ($customer_id == '0') The customers of PWA always have the customer Id 0. As the first $customer_payment_query is set to the payment allowed for customer group #0 (the not trusted group) I will probaby make a new group #2 that is the PWA group and change + to 2 in the code. In this way I will be able to set payment modules and other criterias for this group only... Do you think this will be stable? /Martin
  3. The thing is that I'm not sure WA puts any information in the customer table or atleast it is not stored. PWA customers all have customer_id=0. OK I think i will try to set up a if funtion in the "if all fails" part that checkes if it is a PWA customer. and then run a payment module setup for the group Not trusted. But I'm not sure how to do this. Do you think it is possible to do following? select cg.group_payment_allowed as payment_allowed from " . TABLE_CUSTOMERS_GROUPS . " cg where cg.customers_group_id = '0' But then how to list the module? Thank you/ M
  4. I'm setting up my osCommerce and in the final step I have run in to a problem regarding SPPC combined with PWA. In my settings for SPPC i have two Customer groups: "Not trusted" and "Trusted" (Where "Not trusted" is default group '0') Where the group "Trusted" are able to pay after delivery While the Group "Not Trusted" are only able to pay by Credit Card or in advance This works just fine setting the payment modules for the different group. But NOW to my problem. The customers going the PWA way are not effected by this and these customers are able to chose any payment method they like... I would like this customers to be treated like the registered customers of default group "Not trusted" I have been trying to understand the SPPC part of the file "payment.php" as i think this is where the problem is... It semes PWA stores the information for the order different? PLEASE are someone able to help me. I have been reading like 100 different messages regarding SPPC and PWA but none with information regarding this. I WOULD REALLY APPRECIATE SOME HELP HERE!
  5. Yes that was what i thought too. Of-course I did put the "Not Trusted" group as default. The thing is that the customers in PWA seems not to be effected by this group settings? I have one payment module possible for one group and the other for the other group. But the PWA customers have both options? So the question is still the same... /Martin
  6. I'm setting up my osCommerce and in the final step I have run in to a problem regarding SPPC combined with PWA. In my settings for SPPC i have two Customer groups: "Not trusted" and "Trusted" Where the group "Trusted" are able to pay after delivery While the Group "Not Trusted" are only able to pay by Credit Card or in advance This works just fine setting the payment modules for the different group. But NOW to my problem. The customers going the PWA way are not effected by this and these customers are able to chose any payment method they like... I would like this customers to be treated like the registered customers of default group "Not trusted" I have been trying to understand the SPPC part of the file "payment.php" as i think this is where the problem is... PLEASE are someone able to help me. I have been reading like 100 different messages regarding SPPC and PWA but none with information regarding this. I WOULD REALLY APPRECIATE SOME HELPE HERE!
×
×
  • Create New...