Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What does "content-type" do in shoppingCart class?


g_p_java

Recommended Posts

Posted

Hello,

 

in file includes/classes/shopping_cart.php the shopping cart class has an attribute

named "content-type".

1. What does that attribute do??There is a method in the class named "get_content_type()",i assume that it returns the content_type in the basket, right??Also, this method is used in the following files: catalog/ext/modules/payment/paypal/express.php and express_uk.php, in catalog/includes/classes/order.php and in catalog/includes/classes/shopping_cart.php.

 

In other lines of the file includes/classes/shopping_cart.php, the values "mixed" and "physical" are assigned to the attribute content-type.

e.g.

$this->content_type = 'mixed';
$this->content_type = 'physical';

2. Also, is the attribute cartID ONLY created in includes/classes/shopping_cart.php??

 

thanks, in advance

  • 1 month later...
Posted

content type determines whether an order is "mixed", "physical" or "virtual". An order with all Virtual products skip shipping.

Archived

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

×
×
  • Create New...