Forum Four51° Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Recent Changes

 
Post new topic   Reply to topic    Forum Four51° Forum Index -> General Topics
View previous topic :: View next topic  
Author Message
karnabaum



Joined: 24 Jul 2009
Posts: 7

PostPosted: Wed Nov 04, 2009 8:41 am    Post subject: Recent Changes Reply with quote

We are not happy with the latest enhancement. The Product Detail variable specs are now on the page with Create New. We have a radio button on that page that reads: I have viewed the PDF and it is correct. The user hasn't created a proof yet! Does anyone have suggestions as to how we can make this work now?
Back to top
View user's profile Send private message
cruppert



Joined: 04 Aug 2008
Posts: 23
Location:

PostPosted: Wed Jan 20, 2010 9:34 am    Post subject: Re: Recent Changes Reply with quote

karnabaum wrote:
We are not happy with the latest enhancement. The Product Detail variable specs are now on the page with Create New. We have a radio button on that page that reads: I have viewed the PDF and it is correct. The user hasn't created a proof yet! Does anyone have suggestions as to how we can make this work now?


COMPLETELY AGREE. I also have "I approve this proof" in my product detail spec form, and now it so confusing for our users. Please help!
_________________
Back to top
View user's profile Send private message
karnabaum



Joined: 24 Jul 2009
Posts: 7

PostPosted: Wed Jan 20, 2010 9:38 am    Post subject: Reply with quote

Thanks for the post! I know there must be a lot more of us with this problem. We all need to let Four51 know this isn't working.
Back to top
View user's profile Send private message
cruppert



Joined: 04 Aug 2008
Posts: 23
Location:

PostPosted: Thu Jan 21, 2010 8:03 am    Post subject: Reply with quote


SOLUTION


I just found another easy way to apply it to an entire site if you don't have a custom theme.

You can drill into a buyer site and click 'Site Customization' in the left navigation bar.

The third option down is 'Product ID' which is the text that appears in the column header for the list of variants. You can leave the 'Product ID' in that field, then paste the script I provided in that field as well, and then save - I verified that this will also apply the script to the correct place.

This would probably be the preferred way to deploy this script, as you don't need to change theme files, and you can do an entire buyer site easily with one change.


<This>
<script>
$(document).ready(function() {
if($('#t1_t2_c_p_tmplProduct_variantList_btnCreateNew').length) {
$('table.InfoBox div:eq(0)').hide();
$('#t1_t2_c_p_tmplProduct_optionsTable tr.ProductOddRow').hide();
$('#t1_t2_c_p_tmplProduct_optionsTable tr.ProductEvenRow').hide();
$('#t1_t2_c_p_tmplProduct_variantList_btnAddToOrder').hide();
$("table#t1_t2_c_p_tmplProduct_variantList_dgrVariants tr.GridHeaderRow td:eq(2)").hide();
$("table#t1_t2_c_p_tmplProduct_variantList_dgrVariants tr.GridOddRow td:nth-child(3n)").hide();
$("table#t1_t2_c_p_tmplProduct_variantList_dgrVariants tr.GridEvenRow td:nth-child(3n)").hide();
}
});
</script>
_________________
Back to top
View user's profile Send private message
mvang



Joined: 29 Jan 2008
Posts: 80

PostPosted: Thu Jan 21, 2010 9:40 am    Post subject: Reply with quote

PERFECT!
Thank You so much!

MV
Back to top
View user's profile Send private message
cruppert



Joined: 04 Aug 2008
Posts: 23
Location:

PostPosted: Thu Jan 21, 2010 10:24 am    Post subject: Reply with quote

I just ran into a case were I put the script into the Product ID under the site customization and it didn't work. So I put the script at the bottom of the Product Detail Page and it worked.
_________________
Back to top
View user's profile Send private message
Steve



Joined: 17 Jan 2008
Posts: 337

PostPosted: Thu Jan 21, 2010 10:52 am    Post subject: Reply with quote

Great job everyone. This is exactly what the forum is designed for. Customers helping customers.

BTW, the reason the script didn't work until you moved it to the bottom of thet page because the variant list has to be rendered to the page before you can script against it.
_________________
Steve

You can read about other advanced tech topics on the http://www.insightsfour51.com/?cat=3
Back to top
View user's profile Send private message
karnabaum



Joined: 24 Jul 2009
Posts: 7

PostPosted: Thu Jan 21, 2010 11:53 am    Post subject: Reply with quote

I'm really backed up here today, but will give this a try as soon as I can. Thank you!
Back to top
View user's profile Send private message
jrogalski
Site Admin


Joined: 27 Nov 2007
Posts: 64

PostPosted: Thu Jan 21, 2010 4:47 pm    Post subject: Reply with quote

Thank You to Rob Hurkes at Four51 for developing that script solution. Keep your eyes open for more script solutions to be available to the Four51 customer base. Details to follow in the next few months.
Back to top
View user's profile Send private message
jfkansas



Joined: 21 Jul 2008
Posts: 63

PostPosted: Fri Jan 22, 2010 6:15 pm    Post subject: Reply with quote

If the required "*" and related text still shows up, is there any way to hide it?
Back to top
View user's profile Send private message
rhurkes



Joined: 13 Mar 2009
Posts: 5
Location:

PostPosted: Mon Jan 25, 2010 11:40 am    Post subject: Reply with quote

This script should load correctly if it is put anywhere on the page, due to the document ready function. If it didn't work in the Product ID site customization section you may have accidentally missed a character or something - those boxes are kind of small and weren't originally designed to have large bodies of scripting and HTML in them.

Another important thing to note - the 'Product ID' site customization is probably the easiest way, but if the user doesn't have any variants available, that column will not appear - so the script won't run. If you have a scenario where your users may not have variants listed, the script will have to be placed in your theme, in the product description, or somewhere else.

The script will hide the "required" text such as the asterisk, while still displaying order type, inventory text, etc. I would strongly recommend trying it out if you're curious, you can simply remove the script and save whatever field you put it into if there is an issue. It gets about as close as you can get to the previous functionality on that page. The standard disclaimer of "use at your own risk" probably applies here, but it's a fairly straight forward piece of scripting.

As Jason mentioned, we are looking into ways of providing little scripts like this to the customer base free of charge. Right now, we're leaning towards making them available on the Facebook fan page (but also on request to those that can't view Facebook at work). Keep your eyes peeled for the announcement!
_________________


Last edited by rhurkes on Wed Jan 27, 2010 11:34 am; edited 1 time in total
Back to top
View user's profile Send private message
rhurkes



Joined: 13 Mar 2009
Posts: 5
Location:

PostPosted: Mon Jan 25, 2010 12:41 pm    Post subject: Reply with quote

I have figured out why the required field may not be working for some of you. This is a good example of why these types of solutions may work, but are not perfect.

Please keep in mind that this solution is provided as is, and your mileage may vary. It was only tested with the default theme and default site customizations. If it does not work for you, it can still be a useful base to build off of. If you have a custom theme, or other HTML/Javascript changes elsewhere, you may need to tweak this - it can be affected by your alterations!

The line of script $('table.InfoBox div:eq(0)').hide(); is what actually hides the '* = required' text. That scripting essentially says "find the table with a class 'InfoBox' and hide the first div".

You'll want to verify that if your Product Detail Page HTML has been altered (this is under 'Site Customization') the correct table can still be found.
_________________
Back to top
View user's profile Send private message
jfkansas



Joined: 21 Jul 2008
Posts: 63

PostPosted: Tue Jan 26, 2010 12:58 pm    Post subject: Reply with quote

Resetting the Product detail fixed the required text. I had probably already removed some tokens and other code from the template in an attempt to resolve the issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Forum Four51° Forum Index -> General Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group