How to add a tracking code in the head Bigcommerce? - api

I need the javascript tracking code to appear before the closing tag after the app installation
Is there any way to add a custom js code via API or something

To add tracking code to the head you need to edit the Panels/HTMLHead.html file.
To edit this file go to
{store_url}/admin/designmode.php?ToDo=editFile&File=Panels/HTMLHead.html&f=a
Hope that helps

Related

Shopify asset path in stylesheet?

How to reference the assets path in css?
Can I still use style.css.liquid?
Not sure how to create the link tag.
Tried various paths and using a .liquid extension to be able to use filters.
Here is the working demo with dawn theme.
I have create a file name test.css.liquid and add it theme.liquid using {{stylesheet_tag}}
After it I have upload a image and add it to div background using liquid code into test.css.liquid.
and it works well, here is the frontend snapshot.
I hope this helps you.

Is there a way to create a link that will execute a YouTrack command such as clone issue?

The "Generate Issue Template URL" functionality is clunky, and I'm try to work around it. I have a webpage outside of YouTrack with a list of links containing different templates for ticket writers. Any time a template changes we have to click the "generate issue template" then go update that link on our other web page. It would be nice to simply link to a template, by ID, that when saved will create a new issue or instead link directly to the clone command. The intent is that we won't have to update our template links going forward, and ticket writers will always get the latest version of the template they need.
Ideally it would be best if the entire call to YT could be in the href attribute of a link, but using AJAX is an option as well.
YT Version: 2021.3.22256
I've tried this, and a couple of variations, with no luck:
Template 1
In YouTrack there's no link you can pass a command into to get get it executed.
What you can do is to compose a workflow script to autofill issue fields as required. The only remaining bit is some kind of trigger to get script started. For that you can still use "Generate Issue Template URL" functionality with a single fields or any other marker to let the script recognize the right change to react to.

Prestashop 1.7 disable cart poup

I am using prestashop 1.7 and want to disable the popup and instead call a custom javascript function that toggles my shopping cart visible.
I found various instructions, however I don't have a file called ps_shoppingcart.js. The only one I have is the ps_shoppinccart.tpl which contains the HTML template.
Can someone help me to find where I can do the toggle?
If you take a look at the code of the master file of the module (ps_shoppingcart.php), you will see in the hookHeader() that the ps_shoppingcart.js is skipped when the option "Ajax cart" is turned off, so, you can remove these validation to keep the JS file loaded and in the file every time and now you can add your custom code, the code which show the popup is this:
if (resp.modal) {
showModal(resp.modal);
}
Hope this help you!

Revolution slider with php (laravel)

I want to use Revolution Slider within my html template.
Main issue is I have no any idea how to integrate it to my database and PHP codes.
Can anybody help me?
The core concept of visual editor is to use it as standalone slider builder tool which spits out a full html code with all links, markups etc without the needs to understand html/css/slider functions at all for your sliders. And have ability to export it in html or include it using php functions.
Full integration include user authorization, fixing possible code conflicts, other possible caveats.
The most easiest way to integrate is to add an option to specify slider alias and pass it to render functions. And keep editor as separate application.
If you add more details about how exactly you want to integrate it i would try to give you better answer.

Shopify api: add a link

I am developing a shopify app.
Is it possible to add a new link to the main menu via the shopify API?
Thanks
If you log in to your partner account and then create an App you can edit the created App and you will see all the resources at your disposal where you can add a new link.
If you notice also, using the API you can pull and rewrite any asset in a shop to contain a new link. This is discouraged as bad practice. Instead, inject a script tag that does the dirty work.
Soon as I know the API itself cannot change something inside the theme files... some APPs ask you to apply some code manually in the theme, with proper instructions... maybe this code could add the new menu or dynamically interact to get it.