Tonight being bothered by a Shopify attribute weird syntax.
Having a Gift Card product page, I want to show different UI vs normal product. I user product.gift_card and try to obtain the boolean value for the different UI. But I keep receive nothing.
Normally I try look up the product.json by adding .js at the end of the product URL. And I find there isn’t.
I have use line_item.gift_card for similar purpose, which give me expected value, so I am surprised I cannot get the expected value upon calling product.gift_card.
I connect with Shopify Plus support, and they typically say it should be my theme related rather than any regression in the system. Fair-enough~
Until a moment, I spot the product.gift_card in the developer doc has a Questionmark, i.e. product.gift_card? where that questionmark sounds to me to be a typo. But honestly not! It is the killer character that cause me fail to get the expected boolean. I cannot find another attribute has such un-usual suffix character. And I hope you didn’t struggle too long like me.
It is a difficult year, no matter to the world or to me. There are too many disasters, the financial crisis, making lots of people die or poor. And for my job, we finally make out company site launch. We got too many to work out in order to meet numerous deadline: Launch date, pre-sale, etc. But no matter what, this 2012 I am preparing for my new era. I hope to work our our future with my love. And I wish I can share my skills to help more people to work out more great sites.
Having IE6 to share smaller portion of the web market help business decision-maker no longer thinking ‘we should support IE6 for our company’ web page meanwhile aim at applying fancy effect to their website while IE can hardly run them perfect.
Well, it is actually not only IE6, but some other browser which also not following web standard for web page rendering should also be put off from the market gradually in he future. So that let more fancy web effects to be executed on best performing browsers.
How often do you concern about your name or brand nam ethat you own? Have you ever check your name in some search engine so as to know who call the same?
Just a search with a keyword “Gordon Chan”, a name that followed me at least 15 years from my primary school, is not that simple:
Gordon Chan is a famious Hong Kong film director, 陳嘉上
Gordon Chan is a real estate agent in Canada
Gordon Chan is an academic staff/doctor/PhD belong to the department of oncology in the University of Alberta in Canada
Gordon Chan is the Principal of FCGA in Canada
Gordon Chan is also an artistic hair designer, etc.
Wow, and now, I would like to introduce myself into the world of Gordon Chan:
Gordon Chan is a Web Developer who keen on exploring the possibility of web authoring with passion on making the world of website to be better suit for various clients and visitors’ need.
For the last 12 years, I start building website using FrontPage Express, FrontPage, and later on using Adobe Dreamweaver, or even just Notepad2 for web authoring, I can see how the world of web development change. I cannot say I can bring any new technology advance, I can at least make use of new techniques with standard code style so as to make good works and let visitors to have fun in my works. And now it comes to the time that I start using my name as the brand for my works, and hope in the up-coming future people will know more about me, not a film director/doctor/agent or designer, but a specialist, web developer.
Keep opening and closing numerious blog, starting from today, with lots of work done just for rebuilding the status of mine in the Internet. GC Log, the log of Gordon Chan, I wish to keep my sharing, my learning and knowledge here. I will try to post back some useful blog that I wrote in the past.
Currently besides this new blog, I have 2 ancient blogs that did not update for long time but they worth to be kept forever providing some necessary information: