If this is your first visit, check our documentation. To post, register or login.

Product Articles [support]

Started by gjh42 on 24 Oct 2012, 12:07 AM · Views: 2,590

Results 1 to 19 of 19
24 Oct 2012, 12:07 AM
#1
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Product Articles [support]

This is the support thread for Product Articles.

This mod will allow you to add articles to the product info page in a location you set, for any products desired.

Articles can be any HTML content that you want in more than one product,
such as a size chart, fitting/care instructions, etc.
You can include <img> tags or links to other content.

Articles are saved as .html files in a new folder, /includes/languages/your_language/articles/.

Compatible with any version of Zen Cart.

It has been submitted to Plugins and should be available soon.

25 Oct 2012, 10:23 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Product Articles [support]

Very clever idea! As a suggested enhancement, perhaps you could add another tag which would generate a link to a PDF in a similar way.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Oct 2012, 2:11 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Product Articles [support]

Product Articles is now available in Plugins.
I should note here as I did in the files and documentation that this is based on an original concept by swguy, "boilerplate files", described on his website.

25 Oct 2012, 2:50 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Product Articles [support]

Appreciate the citation. Thank you.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 Oct 2012, 12:51 AM
#5
mralikorn avatar

mralikorn

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Product Articles [support]

Maby i am over looking somthing but i dont understand this part of the instructions:

Add to the product description (doesn't matter where) in admin:

<!-- HTML_A_INCLUDE_bp1 -->

What "Tag" do i put where to make the file show up?

29 Oct 2012, 2:31 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Product Articles [support]

If your file is named myArticle.html, you would add exactly

<!-- HTML_A_INCLUDE_myArticle -->

somewhere in the product description.
Note that the filename can contain only uppercase or lowercase letters or numbers 0-9.

29 Oct 2012, 4:26 PM
#7
mralikorn avatar

mralikorn

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Product Articles [support]

I did that and all i get is <!-- HTML_A_INCLUDE_myArticle --> showing up on the product page.

29 Oct 2012, 9:05 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Product Articles [support]

Then something is wonky about your setup, because that is an HTML comment which should never appear in the live description, even if the article lookup didn't work. Is the comment showing up where you added it to the description, or where you put the function call? Can I see your site?

4 Nov 2012, 8:42 PM
#9
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Product Articles [support]

Hi gjh42 - I just downloaded your plugin a few minutes ago - yet to install it however I just wanted to say thanks. I have been wanting exactly this for ages - well done !

cheers,
Mike

5 Nov 2012, 5:07 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Product Articles [support]

The kernel of this has been available for four years from the forum and swguy's site (http://www.zen-cart.com/showthread.php?100519-Confirmation-can-t-use-php-in-Product-Descriptions); I just made it more flexible and packaged it for simple installation.

7 Dec 2012, 4:34 PM
#11
vancolet avatar

vancolet

New Zenner

Join Date:
Mar 2008
Location:
italia
Posts:
6
Plugin Contributions:
0

Re: Product Articles [support]

gjh42:

If your file is named myArticle.html, you would add exactly

<!-- HTML_A_INCLUDE_myArticle -->

somewhere in the product description.
Note that the filename can contain only uppercase or lowercase letters or numbers 0-9.

in effect the use is real simple, you have to put the <!-- HTML_A_INCLUDE_myArticle --> in the html-source of the page, be careful: if you use ckeditor, click source and it plays.
Dear gjh42, are you able to hint me how can I do for come out "myArticle" in the middle of text and not at the bottom of the page?
Thanks in advance

31 Dec 2012, 10:55 PM
#13
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Product Articles [support]

Hi!

I like the sound of this, so I poked around and DL'ed the files. I was kind of hoping to find a demo link so I could see what folks are doing with it. Any chance someone could put up a link? You can pm me if you don't want to put the link in the forum.

Thanks,
Mike

1 Jan 2013, 2:41 AM
#14
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Product Articles [support]

Ditto, would like to see in action. I did just download and will test somewhere.

Steve
prommart.com

1 Jan 2013, 4:51 AM
#15
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Product Articles [support]

Hi,

Okay, I got this excellent plugin working on two products on my main site:

  1. http://www.prommart.com/mori-lee-flaunt-93201-p-1822.html
    Above uses a straight table for the size chart. I got it working right away.

  2. http://www.prommart.com/alyce-bdazzle-35516-p-1531.html
    This one uses an imbedded pic as the size chart, along with some html text. It took alot longer to get working. At first I thought it had to do with the pic, but eventually realized that it was the way I named this sizechart html file. It was originally alycesizechart-1 but when I took out the -1 it finally worked. Perhaps not a big deal, but any reason why ending the name with -1 doesn't work?

The pic looks too wide even for this new, wide template. Perhaps better to use regular table, or smaller pic.

Should be able to easypopulate up on all dresses soon. Only slow-down is that each designer has their own sizechart. Oh well, this is what I've been dreaming of.

Thanks for the plugin!

PS: I notice that now my Customer Support title in footer sometimes has a link to something called "informationgetter". Hmmm

PPSS: And now I see Customer Support linked in this post and have been seeing such links today on the zc forum. Is anyone else, or is it just me?

Steve
prommart.com

2 Jan 2013, 6:11 PM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Product Articles [support]

The original code by swguy had the limitation of only uppercase or lowercase letters or 0-9 numbers in the filename, and I didn't change that. It seemed to allow plenty of scope for individual filenames.

16 Jun 2013, 1:04 PM
#17
terry_thompson avatar

terry_thompson

New Zenner

Join Date:
Dec 2010
Posts:
18
Plugin Contributions:
0

Re: Product Articles [support]

I just added this plugin to my site. I added it to 500+ products. It only seems to work on about 1/3 of them. I can't find a reason that it only works on some and not others. The application is exactly the same for each. Any Ideas?

16 Jun 2013, 1:49 PM
#18
terry_thompson avatar

terry_thompson

New Zenner

Join Date:
Dec 2010
Posts:
18
Plugin Contributions:
0

Re: Product Articles [support]

disregard. Pilot error.