I have no idea why, but if you view this page:
http://www.awesomegti.com/review/product/list/id/50592/#customer-reviews
I feel like the page is trying to utilise either an old template, or multiple templates which is causing the design to get messed up. If you click 'Back to product' the correct template loads fine.
Can anyone guide me to the right place to check this configuration?
The link you have shared utilizes review modules list action, while when we click on "Back to Main Product Info" link, it takes us to catalog module >> product controller >> view action
Both are managed by different layout xml file so both have different layout.
You can do either of two strategies:
Make layout of product review page identical by doing some css work
Call review form and reviews list on product view page under product reviews tab (which is not working correctly right now)
Related
I have a WooCommerce store set up and I need to have it so that the store front shows the categories and then clicking through lists the products in that category. I have changed the store url to /soft-sell (it's a brand thing) and got it looping through the categories. The url for the click through page is /soft-sell/joe-b (for example), but the click through page is using the 'page-home.php' template and I can't find anything about why this is happening or how to change it. All I'm seeing on the category page is the home page. Anyone have any ideas?
Further info: I have declared woocommerce support in my functions
In case anyone finds this in the future, the solution is posted here
It's to do with the permalinks page having the incorrect custom structure, it needs to be /%product-category%/ not /%product_cat%/
I use Elementor page builder on my WordPress site. There is a problem with it - by default it doesn't allow editing WooCoomerce Shop/Products pages. The solution they say is to add to page templates code. I, being a beginner with no idea of coding, cannot figure out which file to add this code to and where in that file. I have been researching and trying to fix this myself for two weeks now, in vain. Please help me achieve this.
Here's what Elementor say: "Sorry, the content area was not found in your page. You must call the_content function in the current template, in order for Elementor to work on this page."
Go to Elementor setting and then check products in post types
Go to Products, click Edit on the product you want to edit, input something (ie. a full stop-sign '.') in the WP Editor, click Update. (See attached screenshot.)
Screenshot
There seems to be a misconception that Elementor can be used to "edit" any content.
For Elementor to work on a "Page" i.e. the post type that uses either the page.php or any theme declared page templates it requires the_content(); function to present in the code.
Issue #1: WooCommerce uses the woocommerce_content(); function to return the content of the shop.
Issue #2: The Shop output does not use the "Page" or Custom Page template - the output is equivalent to the index.php or home.php, neither of which are editable via Elementor.
Unless you are willing to write a pretty sophisticated function to collect all those elements' data and filter them into the_content(); function, there is currently no way of editing such content directly.
I know it's not the solution you are looking for but that is the current state of affairs. Having said that, some of us are working on all sorts of solutions and maybe, just maybe - we'll come up with a way to have this option available soon ;)
For shop page you should go to Elementor setting and then check products in post types.
Because shop page products are not the content but posts it's the solution.
So inlcude products in post types and edit with elmentor, if for some reason you can't see 'edit with elementor' under shop page, then just open shop page and add
/?elementor and it would enable elementor
NO need to add this code in any page follow these instruction.
You just need to clear cache and cookies your browser, Some time website take previous data to show the web page and give this error.
or
if you open your website private mode then login and go to the page by Elementor you will never face this problem.
How do you have a completely different look for each category in magento 2 (custom category layouts), in magento 1.* I know you could change the template either checking for the page layout or changing the template in the custom layout update via xml however magento 2 doesn't let you change templates in here?
I tried following http://www.magestore.com/magento-2-tutorial/how-to-design-a-custom-magento-2-category-page-template/ but didn't really understand how it worked.
Magento 2 seems much more difficult to get my head around than the previous version so any help is greatly appreciated.
You need to create a xml file catalog_category_view_id_{{id}}.xml under your theme > Magento_Catalog > layout and change list file.
For detail :
http://sumankc.com/2016/12/10/different-template-for-different-categories-in-magento-2-category_id-layout-handle-in-m2/
GO To admin -> Manage Category and select particular category that you want different design and ther is one tab "custom design" . in this tab there is one drop down list with name "custom design". you can select custom design for perticular category.
Here are the steps that you will follow in this Magento 2: Change category page layout
On the Admin page, look for Product section. Then click on Categories section under Inventory.
You can see the category tree on the left, choose any category for which you want to change the page layout.
Then find the Custom design section, click on it.
Now you can change both category page layout and custom theme here.
In this section, you can use 2 fields to change the category page layout. The Page Layout and Custom Layout Update.
Page Layout field gives you 6 options to change the category layout.
The Custom Layout Update allows you to update the theme layout with XML code.
These are the options for changing category page layout.
I just created a custom page called store in opencart. For that, I created three files in opencart directory. ..\template\common\store.tpl, ..language\english\common\store.php and ..\catalog\controller\common\store.php. After adding these files, http://localhost/store/index.php?route=common/store shows me the home page with headers and footers.
The question is I am not able to add modules into the page as it is not displayed in "Layout" drop down under modules. For example, If I go to extensions and "Account", I am not able to find this page under layout dropdown so that I can add account module.
Can someone please help?
Thanks,
Praveen
for adding page to layout in open cart Go to administration -> System -> Design -> Layouts and click on Insert button. Here You can define a new layout (e.g. You have a custom page with controller that is accessed via URL index.php?route=information/mycustominformation, add it's route information/mycustominformation as a new layout route).
Well, it seems like someone had already answered the same question in :
OpenCart adding page to the layout
Thanks for the answer in that post. This is my first post and I cannot upvote the person yet.
In every module and section of opencart we see a drop down called layout. Which usually contains pages such as category, news, product, default, home, etc...
How can I add a page to this section?
Now, I can add a CONTENT_PAGE via information->insert.
Else, I usually do it by creating a controller and a template, but the page I create is not formally recognized by opencard.
My question is that I should I make open card recognize my page which I create by making a controller and a template manually within the project folder. How?
thanks in advance
Though these questions suit more for OpenCart forum instead of SO, I'll try to answer the first one shortly:
How can I add a page to this section?
Go to administration -> System -> Desgin -> Layouts and click on Insert button. Here You can define a new layout (e.g. You have a custom page with controller that is accessed via URL index.php?route=information/mycustominformation, add it's route information/mycustominformation as a new layout route).
The second problem is completely unclear to me. Can You be more specific and describe in more details?