JoomlaShopping Source Code

30.09.2011 02:28
#1
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
JoomlaShopping Source Code

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 07:36
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16508
Quote
Aw: JoomlaShopping Source Code

folder
\components\com_jshopping\...
administrator\components\com_jshopping\..


Letzte Änderung: 30.09.2011 07:37
 
30.09.2011 16:55
#3
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
Aw: JoomlaShopping Source Code

I probably didn't make myself clear.... I can find my way around JoomlaShopping now - and I think its really great - but I can't see how to view the html code etc.... is there a way to get to the source file?

 
30.09.2011 17:23
#4
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
Aw: JoomlaShopping Source Code

I would like to access the source code to change ZIP to Post Code and State to County. Is there a way I could do this please?

 
30.09.2011 23:34
#5
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16508
Quote
Aw: JoomlaShopping Source Code

Change lang file
components\com_jshopping\lang\en-GB.php

use notepad, notepad ++ or php editor

Save file as utf-8 without BOM

 
01.10.2011 02:36
#6
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
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?


Letzte Änderung: 01.10.2011 03:42
 
01.10.2011 19:15
#7
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16508
Quote
Aw: JoomlaShopping Source Code

No.

 
01.10.2011 22:55
#8
Vere
Joomshopping forum user no avatar
Name: Matthias
28.07.2011
Posts: 7
Quote
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!


Letzte Änderung: 01.10.2011 23:00
 
03.10.2011 00:11
#9
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
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


Letzte Änderung: 03.10.2011 00:53
 
03.10.2011 23:45
#10
Vere
Joomshopping forum user no avatar
Name: Matthias
28.07.2011
Posts: 7
Quote
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.


Letzte Änderung: 03.10.2011 23:48
 
04.10.2011 00:53
#11
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
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
#12
Vere
Joomshopping forum user no avatar
Name: Matthias
28.07.2011
Posts: 7
Quote
Aw: JoomlaShopping Source Code

Correct. Either rename the file including the extension .php, or "Save as..." with name and extension in the prompt. (Even if the notepad shows .txt as type of file it will be saved with the .php extension name)


Letzte Änderung: 04.10.2011 23:05
 
05.10.2011 02:29
#13
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
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
#14
crystalfairy
Joomshopping forum user no avatar
Name: Sue Mannings
08.09.2011
Posts: 21
Quote
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


Letzte Änderung: 07.10.2011 12:25
 
09.10.2011 00:36
#15
Vere
Joomshopping forum user no avatar
Name: Matthias
28.07.2011
Posts: 7
Quote
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?


Letzte Änderung: 09.10.2011 00:44
 
Copyrights MAXXmarketing GmbH. All Rights Reserved