Custom themed Opencart 1.4.8 version to 1.5.1.2 - php

I have attempted to upgrade Opencart 1.4.8 with custom theme using update script but it deleted the custom theme as it was actually set as default theme. How can I prevent this from happening so I can use this same theme for new version 1.5.1.2?
Also will this custom theme be compatible with 1.5.1.2 version?

No, it wont. The only way to stop it is to create a custom theme and set it to that. You don't need to copy all files over, but a few usually like header.tpl, footer.tpl and a stylesheet, then if you make any customisations, either use vQmod or create that tpl file in your theme folder, and copy the content over, then edit

Related

Magento2 : How can override vendor/module-catalog to magento default theme?

I am trying to override vendor/magento/module-catalog/* ( * for whole module ).
I copied,
vendor/magento/module-catalog/view/templates/*
files under
app/design/frontend/Magento/Magento_Catalog/*
But I can't get any change of copied files. I don't have any custom theme.
How can I do this? I want to keep original files unchanged with my custom changes.
You can override all files from vendor to our theme using below method.
Goto vendor\magento\module-catalog\view\frontend
Copy all folders and files to
app\design\frontend\{Your_vendor}\{Theme_name}\Magento_Catalog
Clear your cache using below command.
php bin/magento cache:clean
Refresh your page you can see files from your theme.
You can use this as a theme.
app/design/frontend/Magento/Magento_Catalog/
First, you have to create your own theme containing folder like:
app/design/frontend/Mytheme/Theme/Magento_Catalog
And select the theme from admin.
Then this folder will override core module_catalog

My magento theme is still loading the pages from the previous theme

I recently updated my dev magento site with a new theme, configured it and selected it as the theme in the admin panel. However when i go to the front end it is still using all of the old pages for the main content but the header and footer are the new theme.
Image of theme selection
please have a look at your theme folder path. If it is app/design/frontend/intenso/default/
Then you have to use Current Package Name Under Package as intensio(your-theme-name) & Under Themes use Default as default
For more detail, check screenshot:
Screenshot explainig solution for showing old theme
Hope it helps

WooCommerce: Can't find woocommerce/templates/ directory

I am trying to set up a shop for my site using WooCommerce. My goal is removing the "Product Categories" (and maybe "Search" box) on product archive/shop base page. I know editing the "product-archive.php" file is required. But I just can't find it! It should be somewhere in woocommerce/templates/ directory, but there's no such directory!
I'm using Fruitful theme by Fruitfulcode. I'm using the latest versions of WordPress and WooCommerce. I tried virtually anything: installing and reinstalling WooCommerce, installing an older version of WooCommerce... Nothing works. There's no woocommerce/templates directory anywhere in my theme!
Could you please assist me? Am I doing something wrong?
I think you're a bit confused about how WooCommerce template overrides work. Here's some important info you should be aware of:
Installing WooCommerce won't modify your theme at all.
You shouldn't have a woocommerce/templates/ directory in your theme, even if the theme is overriding default WooCommerce templates. Rather, you may have a woocommerce/ directory (without the templates/ directory).
WooCommerce templates are overridden by copying template files from /wp-content/plugins/woocommerce/templates/xxx.php to wp-content/themes/yourtheme/woocommerce/xxx.php
If you aren't seeing a woocommerce directory in your theme, that means that your theme is using the default WooCommerce templates. If you would like to override them, you need to copy the product-archive.php template from the WooCommerce plugin templates directory into a woocommerce/ directory within your theme.
More info in the WooCommerce documentation.
Reading your answer twice I think you may be speaking of widgets since you mention categories and search box. This is usually in the sidebar. You don't need to edit woocommerce template files to change this.
Look for the widget that is being displayed on the archive pages and remove the ones you don't need.
Go to Appearance/widgets and look for the sidebar that is being displayed on the shop and delete the unwanted elements.
You could also use the customizer to view it visually while doing it.
Hope this helps
Im sorry if this doesn't help answer your question but the file you're looking for is archive-product.php not product-archive.php, this is the second question I've seen with this non-existent file mentioned.
If a child theme is being used, the absolute path to the parent theme directory will be returned. Use get_stylesheet_directory() to get the absolute path to the child theme directory.
You need to use get_stylesheet_directory_uri() instead of get_template_directory() in your child theme.
echo get_template_directory()
/*Retrieve theme directory URI.*/
get_template_directory_uri()
require get_theme_file_path( 'inc/post-types.php' );
By default, there won't be any woocommerce fil s inside your theme folder. If you want to customize the Woocommerce tempalte files, you need to copy the files which you want to edit from TEMPLATES folder inside the Woocommerce plugin folder and paste inside your theme folder under folder name called WOOCOMMERCE.

Wordpress child theme not overriding all files

I've been working on customizations to a theme via a child theme and so far all has been well.
The Parent theme users the new customizer (files in inc/customizer) for visual theme settings in the wp-admin GUI.
When trying to replace these files the child theme simply doesn't override the parent themes files. Is this not possible?
If so. How would I go about adding options to the customizer or overriding the functions in these files?
Seems like noone has alot of knowledge about how this actually works or what files are actually overrridden.
However. The correct method of overriding a function in a file that isn't automaticly overridden via filename is to just load that function into functions.php. Ugly, but it does work.

Installed Prestashop Theme not found in folder

I want to uninstall a Prestashop theme. However when I go to the theme folder, there isnt any folder of the theme.
Is there a way to return to the default setting?
I suppose you use PrestaShop 1.5 and you see the theme you want to delete on your backoffice.
How this theme has been installed ?
The theme name displayed in the backoffice is stored in the DB, if the theme relative folder doesn't exist in the "/themes" folder, you can safely delete the entry in the backoffice.

Categories