Magento - Child theme starting point - php

I've recently started to learn Magento (very recently) - and I followed this link to get started on XAMPP https://magenticians.com/install-magento-2-on-localhost-using-xampp/
I now have a localhost setup of XAMPP, and would like to start making changes to the site. I have read that you need to create a 'child-theme' but really unsure of where to start on this.
I can see 2 themes at C:\xampp\htdocs\magento\vendor\magento\theme-frontend-luma
but can't see any at C:\xampp\htdocs\magento\app\design\frontend
Does anyone have a pointer in the right direction? or even a version with populated content/a child theme ready to edit?
Sorry and thanks in advance

you need follwing file for making child theme
app> design> forntend> <Vendor> / <Theme_Child> /
1- composer.json (optional in case parent have)
2- registration.php
3- media folder (with preview image)
4- Magento_Theme
5- etc
6- view.xml

Related

Magnific Pop up for Wordpress

I have been trying to figure this out for the past couple of hours, but how do I integrate the plugin into a wordpress site?
Because the plugin itself does not have a specific directory to be placed, I am confused as to where the files need to be put in order for it to work. My explanation is pretty vague, as I haven't been able to upload any of the 3 files mentioned into wordpress as of yet.
so there are 3 files:
jquery.magnific-popup.js/ jquery.magnific-popup.min.js/ magnific-popup.css
The end product i need is essentially just a set of gallery items, not restricted by width or height, so I am able to have a website similar to this one here as reference: http://www.three-d-conceptwerke.com/
Each Gallery item opens a pop up that displays several images within each gallery, in which case each item is treated as a project containing several images.
That aside, without knowing how to integrate the files into wordpress, I am unable to work on it. Any clues?
It doesn't matter where you place them - just call the scripts and stylesheets in your header or add them into your functions.php.
E.g. if I uploaded them into a directory called external-plugins, I would just call them as
<link href="http://www.example.com/external-plugins/magnific-popup.css"> <script src="jquery.magnific-popup.min.js"></script>
And add your arguments below. Should work fine in your header.php
Edit: That link you posted pretty much explains everything you need to do - if you can't follow it, maybe you should hire somebody else to do it for you!
The instructions are pretty clear from the link you provided...
Create the directory magnific-popup in your theme’s directory. Download the MP CSS and JS files from GitHub and put both in the magnific-popup directory
You need either use an FTP client like Filezilla or use a File Manager from your hosting control panel to log into your site's file directory. Once you are there, navigate to your WordPress theme's directory wp-content/themes/your-theme/ and create a new directory named magnific-popup. Then upload your 3 files into that directory and follow the rest of the instructions to finish setting up your popup.
If you've found this helpful please mark this as the acceptable answer to your question.

One Page Checkout - checkout progress wrapper not shown

i updated a magento store from 1.6 to 1.9. I got some problems with the one page checkout. At first i cant order anything. I resolved this with adding the formkey. The 2nd problem is that this:
<?php echo $this->getChildHtml('checkout_progress_wrapper');?>
does not show anything. I am using my own theme and checkt out the old xml with the new one but there seem to be no changes. The div isn't even parsed empty it's juzst not shown. Hope someone can help me.
Here are some step for upgrading magento
Take a backup of current database and current 1.6 code. place maintenance.flag file inside 1.6 code folder to put website offline.
Download latest magento from the http://www.magentocommerce.com/download
Remove all folders and files from your 1.6 code except maintenance.flag (but you should have backup somewhere) and place all folders and files from the 1.9.x
Now from your 1.6 merge your following custom folders into the 1.9.x
Community app/code/community
Local app/code/local
Media
your theme or package (app/design/frontend/default/<your theme> or app/design/frontend/<your package>)
custom folders from Skin (both for adminhtml and frontend).
copy your custom xml files from app/etc/modules/ to current app/etc/modules/
any custom admin theme folder from adminhtml/default/yourtheme.
copy your custom folders from adminhtml/default/default/ (1.6) to adminhtml/default/default/ (1.9.x).
custom js files if any from app/js/.
Now go to app/etc/local.xml.Edit database details their.put your database username and password and database name.
Remove maintenance.flag file and check the site in the browser. it is done.

magento 1.9 signup form

I have been cracking my head about this for two days on. I inherited some magento 1.9 Multi vendor website and just need to bolden some text on the customer create account field. I have searched every where in my template directory Customer/form/register.phtml and Persitent/form/register.phtml yet I am not successfully able to identify the line that prints
'wants to become a vendor?'
Here is a link to the form please.
http://store.min-trade.com/index.php/customer/account/create/
Could someone point me in the right direction. I pretty much understand the project structure of Magento I do believe. Please help!
Are you sure you are looking in the correct template folder?
You are using the rwd/default template, so have a look here;
app/design/frontend/rwd/default/template/persistent/customer/form/register.phtml
If there isn't a file called register.phtml in that location, then Magento will fall back to the base folder, so try;
app/design/frontend/base/default/template/persistent/customer/form/register.phtml
If you still cannot find the text, it could be a custom login form using another template. Login to your server with ssh/putty and run this command;
grep -nr 'Wants to become a Vendor?' /path/to/magento/*
Just make sure you set the correct path.
You can easily check by enabling path hints from magento admin.
If you dont know how to enable file path hint then refer this link enter link description here
second thing that if you have installed any vendor extension then register form will be displayed from that module.
You can also install this path hint module for check file.

In Opencart 2.0 OCMod, modified file is not used for view

I've deployed a sample Opencart2.0 under a subdirectory in my godaddy domain. I've created a OCMod xml file remove_unused_desc_from_category.ocmod.xml which removes a line from <sub_dir>/catalog/view/theme/default/template/product/category.tpl
I've installed this using Extension Installer and refreshed the cache. Then checked the new file <sub_dir>/system/modification/catalog/view/theme/default/template/product/category.tpl which had the change.
But it is still not affecting the UI. I'm still a learner of opencart and OCMod. Kindly help.
I have asked the same question in Opencart github repo here, and found the solution.
If you installed opencart with an autoinstaller it migth have added DIR_CATALOG to your root config.php, you must edit it and remove it, it should not be there.And move its value directly to DIR_APPLICATION. - florinsith
Code:
//define('DIR_CATALOG', '/home/<user_dir>/public_html/<sub_dir>/catalog/');
//define('DIR_APPLICATION', DIR_CATALOG);
define('DIR_APPLICATION', '/home/<user_dir>/public_html/<sub_dir>/catalog/');

Interspire Template

In Interspire I copy a template & paste it then rename it & I customize it according to my theme but when i go into admin & in admin when i click on design mode then there should be site open for making changes but in my new template it is not open in proper way & I am not be able make changes in this mode please tell me why it is happening in my new template only. in standard template it is working properly. Please tell me the region why this is happening when i select my own template in design mode then there is an error in error-console error is :--- undefined xt/javascript">
After you paste the template, make sure the file is readable by the web server. Insufficient right is the main reason you are not able to modify it.
I'm not 100% sure what you mean about the copy and paste. But the best way to create an Interspire theme is to use the default folder or one of the other ready made templates and do the following:.
Let's say you decide to use the "default" theme. Copy the entire folder somewhere on your computer and rename the folder to the name you'd like your theme to have.
If you are changing specific files, copy those files from _master to the correct directories in your new theme folder.
Upload to your server and activate.
Your theme file names have to remain the same. i.e. you can't rename the files themselves, only the top level theme folder they are in.
Then you can open up the files and make your changes inside of them.
Even though it's possible. I stopped using the built in theme editor once we took the step to create our own theme. For one, doing so kept removing our custom panels when we hit the "save" button.

Categories