Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Fetching userdata in various pages


Recommended Posts

Hello all.


I'm an currently configuring my osC webshop and have added a few tweaks here and there. What is essential to grasp to understand my question is this:


I've added two flags in the CUSTOMERS table as inspired from the Contribution called "Member Discount". They are booleans and have values of 0 or 1.


I've added a shipping module that requires the changes made from the above addition in CUSTOMERS table.


Now when I am at the checkout_shipping.php I want to see if the current user has a special_flag set to 1. If so, only one shipping option should be displayed - the Special Shipping Option that comes with the shipping module I've made.


If the current user have a special_flag set to 0, the ordinary shipping options should be displayed.


For this I need to check data from the CUSTOMERS table in the shipping module, and I just can't get it to work. Any help at all is very appreciative!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...