Announcement

Collapse
No announcement yet.

Creating a global variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Creating a global variable

    Hello,

    I need to create a global variable, called g.basket_type. which can be accessed from any page.
    This information should be retrieved from MySQL table, s01_baskets.basket_type, where 'basket_type' is a new field.

    I tried to do that by creating a system module and define it, but it was not visible in pages?

    Please help!

    Thanks.
    Daniel Kim, Compu-Mate
    Developer

    #2
    Re: Creating a global variable

    What you need is a custom basket field. It will allow you to associate and save data at the shopper/basket level and then save it with the order, if you need to.

    Here are the docs. You don't need a module it is built in.

    http://www.miva.com/videos/web_devel...-basket-fields

    http://www.miva.com/videos/category/custom-fields

    http://www.miva.com/videos/articles/...-documentation
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Creating a global variable

      Thanks.
      Daniel Kim, Compu-Mate
      Developer

      Comment

      Working...
      X