OXID e-Commerce Admin, User and Developer Blog

euroblaze | OXID e-Commerce User Blog


xdebug on OXID Virtual Machine

Posted on December 11, 2011 by Ashant_Chalasani

Since the OXID VM is a good PHP developer tool, it would be great to have the xdebug enabled by default.  Until XDebug starts to comes pre-installed on the OXID VM, it can be installed on the VM’s in use, using:

apt-get install php5-dev

In your /etc/php5/apache2/php.ini, please insert either of these lines to load the xdebug.so shared object.

root@oxidvm:# find / -name 'xdebug.so' /usr/lib/php5/20090626+lfs/xdebug.so

zend_extension_ts=/usr/lib/php5/20090626+lfs/xdebug.so (for threaded use  of PHP) or
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so (non threaded use)

xdebug for OXID Virtual Machine

xdebug for OXID Virtual Machine

Making Parent-Articles of OXID Variants (non)-Buyable

Posted on October 17, 2011 by Ashant_Chalasani

If you have product catalog that contains many articles with many variants, or variant-combinations, it may be necessary to set the parent-product as non-buyable, because only variants can be purchased.  Classical example, a t-shirt in different colors and sizes.  Unless a color and size is not selected, the product cannot be purchased!

OXID offers a configuration-setting for this purpose which would allow the shop-merchant to set up products with variants as non-purchases.  This setting is applicable shop-wide, and can be found under Master Settings > Core Settings > System > Variants > “Parent” Products can be purchased.

For more on OXID Variants, please also see Setting up Product Variants in OXID.

Using JQuery Date-Picker in OXID Admin

Posted on September 30, 2011 by Ashant_Chalasani

To get datepicker feature to text box it is not required to write entire script for date picker since it is already available in jquery library need to include that library into our tpl file directly.Here the follow the process to get datepicker to any text box.

Adding Javascript to headitem.tpl

Add the following JS in ~/out/admin/tpl/headitem.tpl within the <head> tag.

<!--DatePicker code//-->
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(function() {
  $( "#datepicker" ).datepicker({
    showWeek: true,
    firstDay: 1,
    dateFormat: 'yy-mm-dd'
  });
});
</script>
<!--end of date picker code.//-->
  • showWeek displays the calendar week-number, and can be set to true/false.
  • dateFormat can be set to the format your back-end processing scripts expect.  We simply use the ISO 8601
  • For other configuration settings, please refer to the UI/API/1.8/Datepicker (or the newest version) documentation

Calling the Date-picker Functions from the OXID e-Shop

Once loaded into headitem.tpl, the the date-picker function can be called from anywhere in the OXID e-Shop /admin Area by simply adding id=”datepicker”.  Example

<input id="datepicker" type="text" />

Final Steps

  • Clear your ~/tmp folder to reflect the changes
  • Empty your browser-cache

e-Commerce Market Segmentation in Germany 2010

Posted on September 24, 2011 by Ashant_Chalasani lang

According to the Retailer Association of Germany (Handelsverband Deutschland), the 2010 e-Commerce market segmentation has been as seen below.

Translation for English readers below:

  • Bücher = Books
  • Spielwaren = Toys
  • Sportartikel = Sports Products
  • Bau- und Heimwerkerhandel = Construction and Home Improvement
  • Haushaltswaren, Glas, Porzellan = Home Appliances, Glass and Porcelien
  • Elektronische Erzeugnisse = Electrical Components (Guessing this is statistician-speak for computer components as well)
  • Möbel, Einrichtungsgegenstände = Furniture & Decoration
  • Bekleidung = Clothing / Fashion

Setting up Product Variants in OXID e-Shop

Posted on September 23, 2011 by Ashant_Chalasani

Variants contains different type of articles. Many products often require the same variants to be set up.

It would be very time-consuming to set up these variants for each product in OXID eshop.  For example if we take shoes as an article, we can assign different variants for this product based on the size and color of a shoe.

Defining the variants in OXID /admin

  • Select Administer Products -> Products.
  • Select the product for which you want to set up Variants.
  • Select the Variants tab.
  • All Selection Lists that have been set up in eShop are displayed on the left.
  • Select the Color | Size Selection List.

Click the arrow ==>

The Variants will be set up automatically for each entry in the selection list.

Now, you only have to activate the variant, enter any other prices and enter the stock inventory.

In this way, you can quickly set up variants. If you have a few products with the same variants, this method will save you a lot of time.

Variant Dimensions

For example “Color” and “Size” are known as Variant-Dimensions

You can specify variant-dimensions for a set of variants using selection lists:

  • In Name of Selection, you can specify a name for the dimension between the various variants, e.g. Color or Size.

Configuring Variants

  • Each Variant can get it’s own Product-Number
    • If you do not enter a product number, the product number of the parent product will be used, and a suffix-counter added.
  • Prices of Variants can be configured individually
  • Variant order can be sorted, in order to influence the order of listing variants.  On the front-end, variants are listed in ascending order.
  • Individual stock values can be maintained for specific variants.

Example for Variants

Different sizes:

The following example describes step by step how to set up variants for a product. Three variants will be set up: For ex. T-shirt sizes S, M and L etc.. All sizes cost $ 39.99. A total of 10 items in size S are in stock, and 25 items each in sizes M and L.

  • Select Administer Products -> Products
  • Select the product for which you want to set up variants.
  • Select the Variants tab.
  • In Name of Selection, enter Size.
  • Click Save Selection.
  • Next, the S variant will be set up. Make the following settings:
  • In Selection, enter S.
    • In Price, enter 39.99.
    • In Sort, enter 0.
    • In Stock, enter 10. (Depends on the stock availability)
  • Click New Variant.  The variant is saved and displayed.
  • In Selection, enter M.
    • In Price, enter 39.99.
    • In Sort, enter 1.
    • In Stock, enter 25. (Depends on the stock availability)
  • Click New Variant. The variant is saved and displayed.
  • In Selection, enter L.
    • In Price, enter 39.99.
    • In Sort, enter 2.
    • In Stock, enter 25. . (Depends on the stock availability)

Click New Variant. The variant is saved and displayed.

All 3 variants are set up, but are not yet active:

Select the Active check box for all 3 variants.  Click Save Variants. The variants are now set up!



↑ Top

Switch to our mobile site