• Priority: 0
  • Status: Closed
  • Theme: Venedor
  • Assigned To: Fred
  • Private: No
  • Open Date: 10.08.21, 14:28
  • Opened by: Craig
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #22097 - Category Page Layout

Hi

When I select any category page layout other than “default” in the Promokit Theme Settings, category section, all my top level menu items link to my home page. If i change it back to default the the menu works as expected. For example indoor or outdoor cameras.

Send

When on a category page, for example “Outdoor”, if i change the sort order from relevance to price, either low to high or high to low my product list shrinks from 16 products to just 5 products.

Thanks

Comments

Fred 16 Aug 2021, 13:35

I just created new category page layout for you, please test it out https://take.ms/qaBIG

Craig 16 Aug 2021, 14:08

Hi

Tested, yes it works. Top level menu items now work.

The other issue remains? if i change the sort order from relevance to price, either low to high or high to low products disappear?

Can i edit the product page myself? For example three columns of product, not two. Add widgets like testimonials and on the left like i can with the home page builder? If so where do i navigate to do this?

Thanks

Fred 16 Aug 2021, 22:15

1. I just changed sort ordering as you wrote and product list is visible https://take.ms/UtNty

2. Yes, you can edit product page. Go to Creative Elements → Templates and find there “product page” template

Craig 17 Aug 2021, 06:57

Hi

Do you see 13 products in the indoor section when you sort by price? I i only see 2.

. Yes, you can edit product page. Go to Creative Elements → Templates and find there “product page” template
is this from the admin section? See attached, sorry i cant find it?

Attachments:

Capture.JPG (93.3 KiB)
Fred 17 Aug 2021, 19:11

No, I see only 2 products.
Could you please switch to Classic prestashop theme and check out the issue there?

Craig 18 Aug 2021, 00:28

Hi

Switch to classic and had the same problem. I then went to Faceted Search Module and reindex, that fixed the problem

I then switched back to the vendor theme and got a 500 error, could not log in. I have enabled debug mode from in the define(’_PS_MODE_DEV_’, true);file.

I cant get into the admin

This page isn’t working right nowwww.digitalsecurity.co.za can’t currently handle this request.
HTTP ERROR 500

on the front….
(1/1) ContextErrorException
Warning: htmlspecialchars() expects parameter 1 to be string, array given

in c501fd0afa383d7427d629f7fd068e27b0925650_2.file.micro-product.tpl.cache.php line 169
at Block_2131105029611c31d8ce1f08_72532396→callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance→callBlock(object(Block_2131105029611c31d8ce1f08_72532396), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance→process(object(SmartyDevTemplate), object(Block_2131105029611c31d8ce1f08_72532396))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance→instanceBlock(object(SmartyDevTemplate), ‘Block_2131105029611c31d8ce1f08_72532396’, ‘product_micro_item’)
in c501fd0afa383d7427d629f7fd068e27b0925650_2.file.micro-product.tpl.cache.php line 27
at content_611c31d8d23e51_91780060(object(SmartyDevTemplate))
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base→getRenderedTemplateCode(object(SmartyDevTemplate))
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled→render(object(SmartyDevTemplate))
in smarty_internal_template.php line 383
at Smarty_Internal_Template→_subTemplateRender(’file:catalog/_partials/miniatures/micro-product.tpl’, ‘ps_featuredproducts|0|1|1|1|1|30’, ‘venedor’, 9999, 31536000, array(’product’ ⇒ object(ProductLazyArray)), 0, true)
in fa6cc378d2942c8857b89d6bca728048c0caeedd_2.module.psfeaturedproductsviewste.cache.php line 49
at content_611c31d8cd2e85_05137293(object(SmartyDevTemplate))
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base→getRenderedTemplateCode(object(SmartyDevTemplate))
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled→render(object(SmartyDevTemplate))
in smarty_internal_runtime_updatecache.php line 38
at Smarty_Internal_Runtime_UpdateCache→updateCache(object(Smarty_Template_Cached), object(SmartyDevTemplate), false)
in smarty_template_cached.php line 143
at Smarty_Template_Cached→render(object(SmartyDevTemplate), false)
in smarty_internal_template.php line 211
at Smarty_Internal_Template→render(false, 0)
in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase→_execute(object(SmartyDevTemplate), null, null, null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase→fetch(null, null, null, null, false, true, false)
in SmartyDevTemplate.php line 40
at SmartyDevTemplateCore→fetch()
in Module.php line 2488
at ModuleCore→fetch(’module:ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl’, ‘ps_featuredproducts|0|1|1|1|1|30’)
in ps_featuredproducts.php line 252
at Ps_FeaturedProducts→renderWidget(’displayHome’, array(’cookie’ ⇒ object(Cookie), ‘cart’ ⇒ object(Cart)))
in Hook.php line 995
at HookCore::coreRenderWidget(object(Ps_FeaturedProducts), ‘displayHome’, array(’cookie’ ⇒ object(Cookie), ‘cart’ ⇒ object(Cart)))
in Hook.php line 947
at HookCore::exec(’displayHome’)
in IndexController.php line 39
at IndexControllerCore→initContent()
in Controller.php line 306
at ControllerCore→run()
in Dispatcher.php line 518
at DispatcherCore→dispatch()
in index.php line 28

Fred 18 Aug 2021, 10:50

both front page and back office works fine for me. How to see the issue?

Craig 18 Aug 2021, 12:04

Hi, i had to restore a backup. It now working.

This is a test site fresh install, data migrated from live site. I wish to go live with this version by month end but i think there is something wrong with it.

For example, if i change in theme settings any of the product or category pages from default to one of the available template options the navigation menu does not work. If i set it back to default then it works?

I cant find this , you advised me to “Go to Creative Elements → Templates and find there “product page” template” is this from the admin section? Sorry i cant find it?

Amp was not working but i see its now been fixed. I still have to test.

Fred 19 Aug 2021, 12:02

1. You should separate “home page” layouts and layouts of category/product pages. If you select home page layout for category page you will get home page in your category. You need to build your category page layout and then select it
2. “I cant find this, you advised me to go to Creative Elements” – I’m sorry, I missed that you have Venedor theme. There is no Creative Elements module. I meant Page Builder module

Craig 19 Aug 2021, 13:21

I understand now, thank you.

Fred 19 Aug 2021, 13:26

You are welcome!

Craig 19 Aug 2021, 13:33

Could i ask that you make a copy of the red default category and call it FosCategory please? That way i have a chopping block to start with that has 3 columns of product in the grid view and the side widgets i like already.

Fred 19 Aug 2021, 15:14

I just created category layout for you