1

Is there any way to set custom variable name with value in catalog > category > custom deign

Basically what i want a user is on category A he will get option to buy product from cat b and get offer

so basically i want to show url of category b when user browses category A.

any easy way to do this .

  • mour,Magento did not provide this type of feature you to customization in this case – Amit Bera Jan 17 '15 at 6:56
  • yeah i know that's way asking , can i create custom variable in "catalog > category > custom deign" – user1799722 Jan 17 '15 at 6:58
  • put 301 redirection on categoryA.html to categoryB.html – Amit Bera Jan 17 '15 at 6:58
  • no redirection just link at top to go to product of category B – user1799722 Jan 17 '15 at 7:00
  • yes possible,create an new field at using installler , can i put code here? – Amit Bera Jan 17 '15 at 7:00
1

As you want to put new Category attribute under Custom Design tab then you need use tag

'group'.That means when you create attribute then you need to set group Custom Design

See Example:

<?php
$installer = $this;
$installer->startSetup();


$installer->addAttribute("catalog_category", "is_custom_field",  array(
    "type"     => "varchar",
    "backend"  => "",
    "frontend" => "",
    "label"    => "Amit Custom ",
    "input"    => "text",
    "class"    => "",
    "source"   => "",
    "global"   => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
    "visible"  => true,
    "required" => false,
    "user_defined"  => false,
    "default" => "",
    "searchable" => false,
    "filterable" => false,
    "comparable" => false,

    "visible_on_front"  => false,
    "unique"     => false,
    "note"       => ""
    'group' => "Custom Design"

    ));
$installer->endSetup();

Study Guide: here

  • thanks, but a help what to do to show dropdown with value as child of parent category (or sibling of current category) – user1799722 Jan 17 '15 at 8:41
  • will check shortly – Amit Bera Jan 17 '15 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.