Jump to content

Modules "namespaces"


Recommended Posts

Hi,


I have a problem with the cart module and the shopping-cart.php page. The page defines a $products var which holds the products found in the cart, but the module overwrites it. This breaks the cart summary: it looses the products' images and prices.

Here's my point : official modules should define their variables using some sort of "namespace" to avoid such errors. For instance, the cart module could define a $blockcart_products var to hold its products array.

What do you think about it ?

Link to comment
Share on other sites

×
×
  • Create New...