Skip to main content
added 65 characters in body
Source Link
Nickool
  • 1.1k
  • 3
  • 16
  • 38

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

fortunately I did this!:

echo $cat->getlanding_page();

enter image description here

fortunately I solved part of the problem:

load(17048); $cat->setlanding_page('11'); $cat->save(); ?>
<?php include '/var/www/lenmar/mage_classes.php';?>
<?php $_helper = Mage::helper('catalog/category'); 
$cat = Mage::getModel('catalog/category')->load(17048);
$cat->setlanding_page('11');
$cat->save();
?>

so I can set it and show that but how I can get the value for that? I mean instead of Id I want to get Category Listing value

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

fortunately I did this!:

echo $cat->getlanding_page();

enter image description here

fortunately I solved part of the problem:

load(17048); $cat->setlanding_page('11'); $cat->save(); ?>

so I can set it and show that but how I can get the value for that? I mean instead of Id I want to get Category Listing value

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

fortunately I did this!:

echo $cat->getlanding_page();

enter image description here

fortunately I solved part of the problem:

<?php include '/var/www/lenmar/mage_classes.php';?>
<?php $_helper = Mage::helper('catalog/category'); 
$cat = Mage::getModel('catalog/category')->load(17048);
$cat->setlanding_page('11');
$cat->save();
?>

so I can set it and show that but how I can get the value for that? I mean instead of Id I want to get Category Listing value

added 65 characters in body
Source Link
Nickool
  • 1.1k
  • 3
  • 16
  • 38

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

fortunately I did this!:

echo $cat->getlanding_page();

enter image description here

fortunately I solved part of the problem:

load(17048); $cat->setlanding_page('11'); $cat->save(); ?>

so I can set it and show that but how I can get the value for that? I mean instead of Id I want to get Category Listing value

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

enter image description here

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

fortunately I did this!:

echo $cat->getlanding_page();

enter image description here

fortunately I solved part of the problem:

load(17048); $cat->setlanding_page('11'); $cat->save(); ?>

so I can set it and show that but how I can get the value for that? I mean instead of Id I want to get Category Listing value

edited title
Source Link
Nickool
  • 1.1k
  • 3
  • 16
  • 38

how to get cms block invalue from display settings of a category

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

enter image description here

how to get cms block in display settings of a category

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

enter image description here

how to get cms block value from display settings of a category

in the manage category page I have cms block which I want to update it programatically I guess that the attribute id to set for this is landing_page

unfortunatley I don't know the function to get the landing page or get the cms block value

for example in this case Category Listing how can I get that by collection?

$category = Mage::getModel('catalog/category')->load(17048);

also

echo $cat->getAttributeText('landing_page');

it doesn't show me anything

enter image description here

deleted 3 characters in body
Source Link
Nickool
  • 1.1k
  • 3
  • 16
  • 38
Loading
Source Link
Nickool
  • 1.1k
  • 3
  • 16
  • 38
Loading