in Magento 1.7 I have added Infinite scroll effect on my category page using this effect http://demo.rapidcommerce.eu/default/catalogsearch/result/?q=the#/page/3.
Now I want to add the effect on my Homepage. I am displaying all products on my homepage using the below code in cms-> pages->Home->custom layout in admin Panel.
<reference name="content">
<block type="catalog/product_list" name="featured" template="catalog/product/list.phtml">
</block>
</reference>
This displays all categories on my homepage.
I want to add http://demo.rapidcommerce.eu/default/catalogsearch/result/?q=the#/page/3 on Homepage. as I am new in Magento. Any help is appreciated
Related
I'm using default magento 1.9.x Recently Viewed Products block on a CMS page
{{block type="reports/product_viewed" template="reports/product_viewed.phtml"}}
But default magento Recently Viewed Products block only support for logged in users, so it only show when i logged in
I checked the file
/public_html/app/code/core/Mage/Reports/Block/Product/Abstract.php
and It's line number 138 function set a customer id for product collection for filter the results.
But i think normal site visitors not have that kind of id.
if ($this->getCustomerId()) {
$this->_collection->setCustomerId($this->getCustomerId());
}
Anyone know how to get recently viewed products by setting an id to above or by using another way.
i also tried this answer but it didn't work at all
How to get Recently View Product For Guest User In Magento
Step 1 : Go to Admin ->CMS->Pages->AnyCmsPage
Step 2 : Go to-> AnyCmsPage-> Design
Step 3 :Copy and Pase the following code in Layout Update XML
<reference name="content">
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
This question is somehow related to my previous question. I want the "recently viewed" section to show the products which are recently viewed by my (as a visitor). So in that way, every visitor will see their recently viewed products in that section.
Does magento provide any default functionality for this feature or do I have to do it the way I referred in my previous question.
Yes magento has its default functionality
Goto app/design/frontend/default/(yourtheme)/tempalte/reports folder
If you cant see that folder in your theme, just copy it and save it to your theme folder
you can use the below code to display in layout files
<block type="reports/product_viewed" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
To call in CMS pages (homepage)
{{block type="reports/product_viewed" name="left.reports.product.viewed" template="reports/product_viewed.phtml"}}
To call in phtml file
<?php echo $this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/product_viewed.phtml')->tohtml(); ?>
yes , you can by simply use this
<cms_index_index>
<reference name="content">
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
</cms_index_index>
we use a custom template and try to add rwd template for mobile use.
We add an exception for the mobile devices but need now to use an different "home" cms for the rwd template.
Where can I define the cms which is used for the homepage?
I have tried to change the cms.xml
<reference name="content">
<block type="core/template" name="default_home_page" template="cms/default/homeown.phtml"/>
</reference>
and created the cms page homeown
please add your code under <cms_index_index> tag
<cms_index_index>
<reference name="content">
<block type="core/template" name="default_home_page" template="cms/default/homeown.phtml"/>
</reference>
</cms_index_index>
I have a sidebar cart on a magento store i am working on. It has been moved to the bottom of the site.
I have been able to show how many items are in the cart in the footer (footer is located within header.phtml), however, when you hover over the cart, it tells you that there is nothing in the cart. I have added an extension that uses Ajax to add items to the cart. When you add items to the cart, the sidebar cart then works properly, and displays the products that are currently in the cart. However, when you refresh the page, this stops working and 'nothing is in the cart'. Any ideas as to what would cause this?
The web address is
eds.beadmansolutions.co.uk
Hello please add this code on checkout.xml
<default>
<reference name="footer">
<block type="checkout/cart_sidebar" name="cart_sidebar_footer" template="checkout/cart/sidebar.phtml" before="-">
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
</default>
call on footer.phtml
<?php echo $this->getChildHtml('cart_sidebar_footer') ?>
I want to add a login form to CMs page in Magento, I have tried adding this:
{{block type=”core/template” template=”customer/form/login.phtml”}}
in the content section of the CMS page, but its not working . Please help me.
This code finally wordked for me .
{{block type ="Mage_Customer_Block_Form_login" template="customer/form/login.phtml" }}
Open cms.xml in your theme and find the following
<reference name="content">
<block type=”cms/page” name=”cms_page”/>
</reference>
Replace it with this
<reference name="content">
<block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
<block type=”cms/page” name="cms_page"/>
</reference>
Then your code should work.
If your magento version less than 1.6 use the below code.
{{block type="customer/login" template="customer/form/login.phtml"}}
if your Magento version is 1.6 or greater
{{block type="customer/login" template="persistent/customer/form/login.phtml"}}
Try this:
{{block type="customer/form_login" name="customer_form_login_block" template="persistent/customer/form/login.phtml"}}
This is a way to do it without modifying any files:
Go into the Design tab
In "Custom Layout Update XML" add the following:
< reference name="content">
< block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml" after="-"/>
< /reference>
There you go. You can also do this in Categories.
Tested in Magento 1.8.1 (should work on most versions)