Different URLs in category and product page in PrestaShop - prestashop

I'm new in Prestashop and I've got annoying problem.
Here is url for the product:
https://fine.net/category/3-product.html
And it's fine.
But for the category page i've got:
https://fake.net/3-category
I know that I can't remove the number, but I want to add that number to product page like in category page.
I want to have:
https://fake.net/3-category/3-product.html
How to do this?

It's impossible within the default features. You can try to change your URLs in admin panel Configure->Shop Parameters->Traffic & SEO-> SEO & URLs->Schema of URLs and find Route to products, but, unfortunately, by default, you can use only that keywords which are listed below the field and there is no category_id field. So to reach this you need to override some classes like Dispatcher, Link and maybe more or you can get some module which will do this for you

Related

Double forward slash outputting as https:// in Tapcart App from Shopify Site

Working on a Shopify site for a client that utilizes tapcart, which appears to just grab default or inline styles from rich text editor. The problem lies in the product description where we use "//" as a divider.
Product Description // This is a product is how it is supposed to look. It instead appears as:
Product Description https:// This is a product
Not too familiar with how Tapcart works as they don't allow much outside development and can't give an answer as to why this is happening or if there is any way to avoid it. The error does not appear on the actual website. Is there a proper way to escape it? Has anyone seen something like this before?
Thanks!
You can stop using the product description for stuff other than the product description and use metafields instead.
In the shopify admin go to settings -> metafields and define the metafields you need, then go to each product and use the metafields at the bottom rather than using the description to put additional info.

Joomla front page multiple modules/articles

I have a Joomla website with virtuemart. The front page has featured products. Now I want to be able to show more at my front page. I made an article with a picture in it. I want it also to display at the homepage at the same time as the featured products module, say above it. So basically multiple things at the front page. Now I could hardcode it in, but I want to be able to make it as article as it is easier and faster editable.
The solution is Module,
Just create a module , with params as article id options.
Means create a module with parameter option that you can set the article Id, then simply assign that module to the Home Page.
Inside your module Just read the article id and fetch those article details.
For the module development tutorial you can check this.
Hope its helps..

What should be the URL for Products page which is independent of Product Categories- Big Commerce?

I am customizing my Big commerce Store... I need a products page which is independent of product categories.
I am trying the below URL for products page but it says "Page cannot be found".
%%GLOBAL_ShopPathNormal%%/products.
I need the URL to redirect to product page. Please help.
%%GLOBAL_ShopPathNormal%% gives you the store url (non SSL version). The navigation is category based. What you are trying will not work. Maybe, you can hack this - Create a category called "products" and add all the products to it. Then, when you navigate to the URL (storeurl/products), it should list all the products.

Display featured products on category page PRESTASHOP

I just want to show some featured products on each category page (not home page).
I thought to use features or tags. So in the back, I add to the products I want to show a "featured" tag or feature. And then in the front on each category page I display the products of that category that have that tag or feature.
What do you think is easier? and how can I achieve this? I am so lost, so I'd appreciate any guidance.
Thanks guys
Here is how I would do this:
Create a module (obviously) to extend the product class and add a featured field (as a boolean, you can also use a position field if you want to manage something like that)
Within the module it's easy to override the admin controller to add a checkbox somewhere
On the category page, create a hook to display the featured product, or just override the categoryController to get them.
And voilĂ ! It's really easy. I just give you the steps as I won't write the code for you :) but if you need more advices feel free to ask

How to duplicate Prestashop contact form page?

I am using Prestashop 1.5 and want to clone Contact form page.
I tried it by myself, but no success. I duplicated ContactController.php, contact-form.php, contact-form.tpl with different names, than new page appear in backoffice /seo and urls / created desired url, but if i try to access page with choosen url i get page not found.
You also need to change the class name and the $php_self property to make it works.
If the class is not found, erase the /cache/class_index.php file.