Magento popup button location - php

I am looking to track down the file (and it's location) that generates the 2 buttons on Magento. When I hit "add to basket button" on any product on the homepage a pop-up with 2 buttons appears. I am unable to translate the buttons (not images). I did tried to locate it for a couple of days, but no success. Inspect element/view source/including developer extensions doesnt help me at all. Website: haratoys.ro
thx in advance

Here are a few things you can do:
grep - always useful. Look through templates AND app/code/local, AND app/code/community. Or use an IDE that can search through all the files.
Check the admin panel. Some extensions may use widgets or insert blocks in textareas. Normally, when adding buttons programmatically, there will be an option to edit them
When all fails, search the database directly. First, look in core_config_data, then try searching through the custom tables, and if all else fails, look through the whole database (phpmyadmin has such functionality).
If none of these help, someone screwed up really bad. Check for symlinks or encoded information, maybe even remotely loaded content, javascript generated content (although this should be found with grep).
Also, try searching for identifiers that are not general. Looking for the "Add to cart" text may not find what you need, but searching for the button id will get you some useful information. Also check case sensitivity.

It's probably custom to your theme, but it may be located in
app/design/frontend/theme/default/template/checkout/onepage/link.phtml
This is where I was able to change the content of the links, so it's possible that they are in the same location.
What Vlad said, however, is the best way to find what you're looking for.

Related

Joomla Extension AcySMS Need to modify source code

hello all i need to change the style of Joomla extension AcySMS but
unable to find where i need to change
here is actual problem i need to change the style so that button must
in front of text box and in country code selection i need to add
county code with the flag of country Thanks :)
I don't know this specific Joomla-extension, but you seem to need two changes:
change the markup of the button
place the button before the input
The first can be done by changing your own custom css-file. Use firebug or developer tools to find out which classes are used and override or extend them in your own css-file.
For the second one, you need to know whether you're using a plugin, a module or a component. The answer to this question leads you to the right Joomla-subfolder. There you will probably find a acysms-folder. Then you'll have to look (even in subfolders) for a file called default.php.
You should use template overrides to manipulate these files, otherwise your changes will be lost with the next regular update of this extension. You can search the Joomla website for help on template overrides. It's not very complicated. https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
If (for example) you want to make changes to the mod_login module then you would have to copy the file default.php from
PATH_TO_JOOMLA/modules/mod_login/tmpl/
to
PATH_TO_JOOMLA/TEMPLATE_NAME/html/mod_login/
and apply your changes there.
I hope this will get you started.

Joomla 3.7 Change Default Registration Link ID

Right now I'm testing a site on local host. But to show the error I'm running into, go to this address:
http://www.bearvalleycomp.com/cust/twoil/index.php/component/users/?view=registration&Itemid=101
What I want it to do is show the page like this:
Edit: I don't have enough rep to post more than 2 links...Enter that same link above without the "&Itemid=101"
But I'm lost in the code to find the address to remove the Itemid=101
I have found a guide where I can edit it through the system menu as shown here:
https://www.templatemonster.com/help/joomla-3-x-edit-registration-page.html#gref
But it appears this 3.x might not be updated for the latest edition.
Any insight would be appreciated. Thank you
After looking through multiple files, I did find the answer to change the link. It's located under /modules/mod_login/tmpl/default.php. Down around line 101, I was able to add &Itemid=114 to the end of the index.php?option=com_users&view=registration making it look like this:
index.php?option=com_users&view=registration&Itemid=114
Now when I click on Create an account, I see a page for only registering an account.
However, now I get mail errors but I can look into that later I guess.
To work around this problem you have to add the register page to a hidden menu (normal menu, but willout position module) and use that alias item on your link.
This way you can decide which modules to show or not for that particular page.

How to change code on the front page of a Magento store?

I am helping out with a Magento store initially configured by another developer who is now gone from the company, and I have no experience using Magento at all. Instead of using the built-in newsletter tools, he created an HTML form which points to a completely different server (which he owns) and now we no longer get notifications when a customer signs up for it.
Somehow, he embedded the HTML into the front page of the Store's website. I spent hours looking for the HTML and did find it, in a page called "Subscribe.phtml". I got happy, changed the code inside that page to what I want it to be, uploaded it back to the server and... nothing. No change at all to the site. I flushed the cache but that did not help.
The page does not appear to have much code in it. In CMS->Pages->Content, it shows only this:
{{block type="featuredproductslider/featuredproductslider" name="featuredproductslider"
template="magentothem/featuredproductslider/featuredproductslider.phtml"}}{{block
type="newproduct/newproduct" name="newproduct"
template="magentothem/newproduct/newproduct.phtml"}}
Under Design, it shows only that the layout is "3 columns". There is literally nothing else in this section.
Can you help me understand how I can change the HTML in this area to make this work? If this is helpful, here's a picture of the area that I am trying to configure:
Thank you.
On page 44 of the manual, there's a section called "How to find out which layout file to modify". I used Template Hints and figured out where the code lived. This is what Jim was referring to. It would have been nice for someone to instruct me on how to do this.
I set it up and found that the previous developer had modified the template directly rather than use blocks or other parts built-in to the system to modify the front page.
You can enable template hints in the Magento configuration:
Go to System->Configuration
Change "Current Configuration Scope" to "Main Website"
Go to Advanced->Developer
Under the Debug tab, choose "Yes" for the "Template Path Hints"
Save configuration.
Now go to your homepage, refresh the page and you will see paths to all templates used on the homepage. You will then get a good idea of where each block comes from.
It won't solve your problem, but it might help you find the right template to edit.

customizeToolbar in mediawiki

In my project i need to customize the toobar section of mediawiki editor.
I read the article: Extension:WikiEditor/Toolbar customization on mediawiki.org.
In the basic step they specified like:
"So, to customizing the toolbar, put in your User:YourUserName/common.js a code such as this:.."
I didn't get the idea regarding this...
So please help me in order to customize the toolbar
Users can define custom javascript code in MediaWiki by editing the wiki page User:<username>/common.js (you need to enable $wgAllowUserJs for it to work). For sites that you administer, you don't want to do that; instead place the script in the wiki page MediaWiki:Common.js, which affects every user and visitor.
You need to do two steps:
Edit the file mediawiki\includes\EditPage.php. It is a good idea first to make a copy of it. The function to edit is getEditToolbar. Edit the $toolarray. You can find plenty of example code via Google, here is one example for various common edit buttons.
Add images to mediawiki\skins\common\images. These are the images for the buttons. You can find example images here.
Please remember - if you upgrade your software you will need manually to merge the EditPage.php file.

do not reload sidebar.php within single.php

In my Wordpress-powered website (http://onomadesign.com/wordpress/identity-design/usx-corporation/ for example) I want the sidebar.php, the thumbnail navigation on the right, NOT to reload when people click another project. So that they not get lost in navigation.
Now, I have looked at iframes, jQuery cookies, 'AHAH-method', php sessions.. but I can't find an easy way to do this.
I am defenitely not a programming expert, could someone give me an easy solution for this?
Thanks a lot in advance!
IFrames or AJAX are the only two options you have. (I suppose unless you did full screen flash) Everything else is going to reload the page. Ahh those other technologies you mentioned do not address the problem of reloading the main page (except iframes)
It isn't really going to be "straight-forward", but what you're trying to do isn't straight forward. I really recommend you take a look at jQuery and how AJAX works, it's probably the better of the options all things considered.
There are a few Wordpress plugins that attempt to implement this functionality. I haven't used any, so I'm not sure if they completely avoid reloading the sidebar, but it's worth a shot. One in particular that seems fairly well scored would be http://ajaxedwp.com/ I found this plugin by going to the "Add New" plugins page in the Wordpress Admin panel and searching for "AJAX Page Load".

Categories