Can anyone tell me how I can access the source code of the JoomlaShopping extension please? I see various posts here saying to change code for various things.. but I have no idea how I get to it!
30.09.2011 02:28
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
|
30.09.2011 07:36
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25941
|
|
30.09.2011 16:55
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
|
30.09.2011 17:23
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
|
30.09.2011 23:34
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25941
|
|
01.10.2011 02:36
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
Aw: JoomlaShopping Source Code
Thank you for your time in being helpful - I have saved the code from the Firefox - tools - web developer - page source and copied it into notepad - then made my changes. I have saved this file to my computer and as you advised saved as UTF-8. I don't know how to transfer this NEW code to my website. Can you help me with this please?
Last change: 01.10.2011 03:42
|
01.10.2011 19:15
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25941
|
|
01.10.2011 22:55
|
|
Vere
Name: Matthias
28.07.2011
Posts: 7
|
Aw: JoomlaShopping Source Code
@Sue You need to change the code in the .php files. Those .php files are dynamically generating the html code you see with your browser program. In your case, it's the components/com_jshopping/lang/en-GB.php Backup your existing file first :) Safe coding!
Last change: 01.10.2011 23:00
|
03.10.2011 00:11
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
Aw: JoomlaShopping Source Code
Thank you so much for your reply Mathias. I'm not that familiar with PHP coding (I am ok with html)... I have eventually had a lightbulb moment and realised I have to find the file in my pubic_html. Do I save into notepad and edit and then save it back again with the same name? Thanks for your time. Sue
Last change: 03.10.2011 00:53
|
03.10.2011 23:45
|
|
Vere
Name: Matthias
28.07.2011
Posts: 7
|
Aw: JoomlaShopping Source Code
Exactly. Backup the file (just in case ;) ). Then download it, edit in your preferred editor (I use notepad++, but the stock windows notepad works fine as well), then upload the changed file with exactly the same filename again. If I understood correctly, in your case you need to change define('_JSHOP_ZIP', 'Zip'); to define('_JSHOP_ZIP', 'Post code'); and define('_JSHOP_STATE', 'State'); to define('_JSHOP_STATE', 'County'); This just changes the labels for those two fields, not the way they are handled by jshopping. But it should do the trick in your case.
Last change: 03.10.2011 23:48
|
04.10.2011 00:53
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
Aw: JoomlaShopping Source Code
Thanks very much for that info. I thought I was probably on the right track now. I just have one more query. I have made the changes to the file and saved in notepad but when I upload this file to my ftp it shows as a text file not .php.... I have no idea how to save it as PHP . Do I add the .php extension to the file name in save. I was too nervous to make the change without being sure (as previously mentioned I have no experience whatsoever with PHP code.)I assume that if any of this is correct I change the file name to the file I want to replace once it is uploaded. I really do appreciate your help. |
04.10.2011 23:04
|
|
Vere
Name: Matthias
28.07.2011
Posts: 7
|
|
05.10.2011 02:29
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
Aw: JoomlaShopping Source Code
I really appreciate your help and advise - and the encouragement - thanks. I've had a disaster this evening though and being brave decided to give changing the code file a go.... unfortunately I've done something (I don't know what) completely stupid and when I try to view my joomla site now even though all the backend content is there the view page is blank and I can't call it up as a webpage either.... looks like its back to the drawing board! Thanks again for your help and I'll keep the info which I'll try again
Joomla: 1.7
JoomShopping: 3.2.6 |
05.10.2011 19:52
|
|
crystalfairy
Name: Sue Mannings
08.09.2011
Posts: 21
|
Aw: JoomlaShopping Source Code
I've tried to change this code and this just left me with a blank pages at the frontend of my site. I changed back to the original file but the code was corrupted and all the buy and detail links showed J_SHOP in front of them. I have now reinstalled joomlashopping to try to start again but if anyone can point me in the direction I may have gone wrong I'd be grateful before I make too many new entries on the site. I know the advise previously given is correct but I am making mistakes I think when I am saving the backed up and the changed code. Would it be easier for me to do this if I downloaded notepad ++ ( I am just using notepad at moment)? Many thanks
Last change: 07.10.2011 12:25
|
09.10.2011 00:36
|
|
Vere
Name: Matthias
28.07.2011
Posts: 7
|
Aw: JoomlaShopping Source Code
What else did you change? That single .php file should only affect the jshopping part of your installation, so even if you got the file somehow wrong, the rest of joomla should work just fine. What may be an issue, I was always talking of 2.9.3 of Jshopping. You are using a newer version. So Webmaster, are the .php's different?
Last change: 09.10.2011 00:44
|