Pinterest Addtocart event code | Shopify | Turbo Theme - ajax

I'm trying to set up Pinterest conversion tracking codes, so I just pasted a Pinterest base tag & Checkout Event to the theme.liquid file & checkout settings, however, I also want to add the Add To Cart event code, but I was not able to do it with the help of the official instructions since I couldn't find a line of code where I needed to pass the Add to Cart code. Can anyone tell me exactly where I should paste the code?
Instructions that I was looking at were these (Step 3) :
https://help.pinterest.com/en/business/article/shopify-and-pinterest-tag
In my current code that I have in my product.liquid I couldn't find addtocart section where I need to input the Pinterest code. FYI I'm using the TURBO THEME.
Any help would be highly appreciated. Thanks!

Online Store -> Themes -> YOUR THEME -> Actions -> Edit Code -> in the left sidebar find "Snippets" -> product-form.liquid file
and then you can find button with add_to_cart class and add this onclick="pintrk('track', 'addtocart');" in the end of the tag <button here>

Related

Magento, category, details button

I'm trying to teach myself Magento, and basic programming.
In the product lists I have, beside the "add to cart" button is a "Details" button. It has a typo in the label, and says "Detalis".
I need to fix this, but I can't find where/which file it is in. Can anyone point me in the right direction?
Generally,product list layout came from list.phtml file.
file location:app/design/frontend/default/my_theme/template/catalog/product/list.phtml
(or)
Please enable the path hints via admin panel.It's show all block paths.
How do I turn on template path hints?
To turn on template path hints in Magento:
log into the magento back-end admin
Go to System -> Configuration in the main menu
Go to Developer on the bottom left under ADVANCED
Switch to the store view on the top left to your current website or
store view.
Under the Debug tab of the same Developer config page you will see a
new option appear that will allow you to turn on/off template path
hints.
Remember to clear your cache.
Generally, I believe that the templates associated with products would be located in the
app/design/frontend/default/your_theme/template/catalog/product/
However, I am unsure of your site template files etc, especially if you are doing things yourself.
To make your life easier, I would suggest installing a program called Agent Ransack which I have found to be invaluable when searching for a needle in a haystack.

Magento left side bar customization

I have a magento site developed by someone else. I am now taking over the site. I am a new bee in magento. Someone please tell me how to customize or change the left sidebar of this page:
http://www.365zay.com/mobile-phones.html?brand=44
where will i find the code, and what is the file structure of Magento?
Thanks in advance
go to admin/system/configuration - then on left bar click developer, -> on top left change current scope to Main Website-> On Debug Tab- Turn YES on both Template Path Hints & Add Block Names to Hints -> After that you we will be able to see path for your particular files on frontend.
It will be more better if you first follow, Magento Design & Userguide.

How to attach ItemID to joomla footermenu

I am don't know joomla, but familiar with wordpress & PHP & wants to change some links in my clients existing project.
I have a menu which is a link like http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6&Itemid=107 while calling it from top navigation menu.
developer has taken same link in footer but it redirects to
http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6
Now i want ItemID in footer link also.
My Site URL is http://www.smarti.com.sa/
In that please Products > Microsoft.
Please give solution
As per your post, Your menu link for now is : http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6 .
But, you want to use this like : http://www.smarti.com.sa/index.php/your_menu_name.
You can use aliases of menu links.
You can find aliases here, When you create/edit a menu link from backend of joomla you can see an alias associated with it. You can also find Aliases of menu link from grid screen of you menu type.
For showing Menu in front end you have to create CUSTOM HTML module, You can find how to create Custom HTML module here : http://vinaora.com/2012/09/how-to-add-custom-html-to-your-joomla-site-2/
Now, How can you find HTML to write in thst Custom HTML Module? So, for this you can go the page of front-end where that menu is visible. Now prss CTRL+U, you will see the HTML of that page. Here, you have to find the HTML of those menus.
In this HTML, you will find the links like : index.php?option=com_content&view=article&id=6
Now, you have to replace these links with index.php/alias_of_your_menu.
Now paste the edited HTML in Custom HTML module and save it by selecting a proper Position.
You can use joomla menu module in the footer.
Joomla also has the option to display second level menu items in a menu module.
To do this:
Set the Start Level to "1" and the End Level to "1".
That's all. Good Luck.

Add HTML to skadate sidebar

Can someone explain how exactly to add some html to the sidebar of a template in Skadate? It is using smarty templates and I am trying a lot of different ways but have been unsuccessful.
It is located in Layout -> Components -> Page_Sidebar -> Default.tpl. Be sure to also clear the site cache in the admin panel after making changes. I missed that and that is why none of my changes were showing up.

Make joomla blog link to inner pages(or blog roll post actual)

So i was told to create a blog for client in Joomla and, i have minimal knowledge of Joomla inner workings. I made the blog as seen here
http://www.assurancepower.com/about-us/blog.html
But the problem is that, the headers/titles for each story in that blog roll cant be clicked.
Im wondering is there a way i can make this happen? Essentially this page is a collection of the stories and i want to be able to click on a particular one (any of them) and be taken to its inner page/full version of the story.
Not exactly sure what im supposed to do/search for. Im not sure if joomla has a wordpress like functions.php or for example, is there somewhere i can instert a....maybe something like how wordpress does it with permalinks like so:
<?php permalink(); ?> //title link here to the actual story.
or something like
<?php bloginfo('url');?>// this relative link for WP.
Etc, All i want is to be able to have these titles in this story be active links to their full counterpart. Not sure what to look for/how to go about fixing this.
Thanks in advanced.
Did you check in the menu item that titles linkable is enabled ?
Menus -> (Your Menu) -> (Click on the menu item) -> Parameters (Component) -> Title Linkable
You can try this too if the above setting is ok:
http://www.2020media.com/content/view/240/38/
If none work then check if the template allows it, otherwise you'd have to override it or modify the template.

Resources