Odd things embedding HTML in Products...

User 171044 Photo


Ambassador
64 posts

Perplexed and help please.....it maybe a coding issue on my side, but who knows. Embedded some HTML code within a product description (in this case to a FaceBook profile). When you add the product to the cart you are taken to the facebook link!

Here is my code and text:

+++

The patient
Has the look of God
In his rich eyes
Bluer than the blue
Of crystal seas
Each wave bringing blue
To end on this odd shore
Where we hug and linger
Dream of dolphins
And lock seamlessly as before"

From the Calgary Lairs
Copyright: Matthew Francis Doyle 2012

Paperback
Pages: 120
Condition: New/Mint
Poetry

Follow Matt on FaceBook.

[[[<a href="http://www.facebook.com/profile.php?id=1002261053" target="_blank"><IMG SRC="/shop/extraimages/facebook.jpg"</a>]]]

+++

The URL link where you can see this issue (probably mine) is here:

http://www.radiomull.net/shop/viewitem. … ductid=205

As said probably me. Help please from the community. Kind regards and thanks in advance. Matt
User 2073552 Photo


Registered User
1,625 posts

You code shows as:

<a target="_blank" href="http://www.facebook.com/profile.php?id=1002261053"><input type="hidden" value="add" name="method"><input type="hidden" value="205" name="productid"><input type="hidden" value="142" name="groupid"><input type="hidden" value="" name="cartid"><span class="scs_addtocart_wrapper"><input type="submit" class="scs_addtocart" value="Add to Cart"></span></a>

The a should be moved before your submit button. Not after. It should look like this.

<a target="_blank" href="http://www.facebook.com/profile.php?id=1002261053"></a><input type="hidden" value="add" name="method"><input type="hidden" value="205" name="productid"><input type="hidden" value="142" name="groupid"><input type="hidden" value="" name="cartid"><span class="scs_addtocart_wrapper"><input type="submit" class="scs_addtocart" value="Add to Cart"></span>
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 171044 Photo


Ambassador
64 posts

Hi SirAGE, thanks for amazingly swift reply for which many thanks :). I understand fully. Does this mean I have to edit the source code outwith the software and upload...or can this code be marshalled within the Product description within the cart software. Sorry to be a pain. Kind regards Matt
User 2073552 Photo


Registered User
1,625 posts

I personally do not own the SSC so, that is a question I can not answer. :( I can only tell you what I see as the error in the code. I can however suggest a SSC user get back to you with that answer. :P Give them some time to get caught up on your post and I am sure they can answer it!
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 187934 Photo


Senior Advisor
20,193 posts

You need to adjust the html code that you inserted in your page.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 171044 Photo


Ambassador
64 posts

Hmmmmm...there appears to be an issue here and special thanks to SirAGE for pointing me in the correct direction. OK: the code snippet inserted onto a product page is

[[[<a href="http://www.facebook.com/profile.php?id=1002261053" target="_blank"><IMG SRC="/shop/extraimages/facebook.jpg"</a>]]]

The </a> always seems not to be contained within the snippet. It is placed elsewhere. For example, if that code is placed at the top of the product description, then all other text below is linked, including Add to Cart. Does this mean that the source code has to be edited outside CCSCP??? I have tried a number of permutations to no avail. I fully understand what is going on. If the product needs to be edited outside the program, how and where can you find the relevant page. Have tried hunting within the folder structures and failed miserably. Thanks in advance. Matt.
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Matty,

Are you inserting this with the HTML Tool or are you putting it in there like that yourself? I'm going to assume the HTML Tool, but if not then try doing it that way without putting in the [[[ ]]] manually as the HTML Tool adds that in there itself.

If you're already using the tool then nevermind :)
User 187934 Photo


Senior Advisor
20,193 posts

You need to add the close tag for the img.;)

>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 171044 Photo


Ambassador
64 posts

Problem resolved and thanks Rolly. Just been too busy and got letter blind!!!!!! Cheers in the meantime.
User 171044 Photo


Ambassador
64 posts

Rolly it just crossed my mind. I guess you can create HTML to take a shopper directly to a specific product, say from text embedded in a Main Category Page etc etc. Where exactly are the products saved, have been searching to no avail. Thanks in advance Matt

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.