How I can add color swatches in quick view page in Shopify? - themes

please check my code from below link
https://www.huratips.com/tech-tips/how-to-create-a-simple-quick-view-without-app-usage-to-your-shopify-store.html

You can start by checking how do you display the quickview, i believe you are using a
script for this. If you could post your code here so we can check.

Related

How to apply condition for specific page in magento?

I want to apply condition for specific page coming from url. It is neither a category page nor a custom cms page. Url is like localhost/project/index.php/news/blog.html. I want to apply condition for this 'news/blog.html' . News or blog is not a category and not any cms page. Can anybody help me?
It depends on the type of condition, you want to user over there. You can try with the following.
1. Try to put a observer in the relevant controller using the cheat sheet https://www.nicksays.co.uk/magento-events-cheat-sheet-1-5/
2. Directly try to edit model in the module of that page.
3. Try to put some code directly into the file.
Thanks,
Use the following code.
Mage::app()->getRequest()->getControllerName();
It will give controller name to your module. Put consition for this name and write your code. It will work for sure.

Can't get short description in category list view - despite trying suggestions

Have looked at Cant retrieve short description in category list view, but despite setting "Used in Product Listing" for the short_description attribute and rebuilding the indexes, and turning off the flat catalogues, $_product->getShortDescription() still doesn't return anything.
Is there anything else I can try, or is there some way I can debug what is going on?
Check this first,
When you are editing the list.phtml file both Grid view and List view are both created in this file. Test with a quick message in place of your getShortDescription call just to make sure you are in the right place.. If you are, please post your code in here and I will be glad to help.

Tumblr: how do I remove the description/sidebar box on the submit page in the default Peter Vidani theme?

I have a tumblr account that has submission enabled, and I have a short description with a form in the "description" area that appears on the sidebar. However, this description also appears on myblog.tumblr.com/submit. I'd like to remove it.
I looked at the documentation on http://www.tumblr.com/docs/en/custom_themes#navigation, but haven't been able to figure out how to prevent the sidebar description from showing at the top of the submit page.
Can anyone help?
I'm not sure if I understood your question correctly. But if I did, a work around would be using jQuery to check if the current url contains the string /submit and simply disable the sidebar, or the element that contains the description.
I don't know jQuery but I know it's possible. I'd suggest you to look into this post:
How to check if the URL contains a given string?
and combine it with this line (replace the "alert part")
$("#sidebardescription).hide();
Another solution would be if Tumblr provided you with a way to only render for specific pages. They usually do that. I'd look into this part {block:SubmissionsEnabled} {/block:SubmissionsEnabled} before I go with the workaround.

Magento edit shopping cart title in header

I have a Magento webshop and in my header is standing: Shopping cart - Subtotaal winkelwagen
I was looking for a way to edit this text. I have looked into the .php files etc. but i didn't found anything there so far. I hope someone can tell me where i can edit this text.
The best way is as erwin_smit described it.
As an addition the fastest solution is by using the inline translation Tool under
System->Configuration->Developer->Inline Translation
After activation reload your Front-end and edit the dotted text.
That's probably somewhere in app/design/frontend/packagename/templatename/checkout/cart.
If not, try to switch on the template hints on.
You can also replace text using a translate file. Place a file called "translate.csv" in app/design/frontend/{packagename}/{templatename/locale/{languagecode}/
Hope this helps.

Tumblr: Show page links in a menu?

I have created a custom Tumblr theme and have a number of pages on my blog. I want to create a navigation menu near the top of my template but am unsure of how to do this.
I have added the lines:
{block:HasPages} {/block:HasPages}
{block:Pages} {/block:Pages}
But this has no effect.
Does anyone know the correct way of achieving this?
You should be able to do
{block:HasPages}
{block:Pages}
{Label}
{/block:Pages}
{/block:HasPages}

Resources