close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

WA_Auth_RulePasses text area on cart.php showing in mobile view regardless of conditions

Thread began 3/21/2019 10:39 am by graham | Last modified 3/28/2019 10:10 am by Ray Borduin | 834 views | 11 replies |

graham

WA_Auth_RulePasses text area on cart.php showing in mobile view regardless of conditions

Hi, Ray ... awhile back you helped me in a Premier Support session to add a wholesaler element to my checkout process. Part of it was to implement a minimum quantity check, which included a simple text area appearing under the quantity box on the cart page to indicate the specific minimum for that product. The area was to show if ((WA_Auth_RulePasses("Wholesaler") && $eCartNewPurple->DisplayInfo("minimumQuantity"))) ... works great ... except, in mobile view it always shows, regardless of whether RulePasses or not. I wonder if you could take a quick look?

Also, there seems to be an issue with updating quantity for any item on mobile (Android) ... change it and hit Go - the update prompt appears for a second, but returns to product page without updating cart. I have found another thread where you mention Android issues with onfocus and onkeypress, but couldn't figure the fix in my case. I realize this might be better handled in a separate thread, but, while you have it open ? :)

Thanks as always, Ray

Sign in to reply to this post

Ray BorduinWebAssist

I'll need a URL to reproduce and FTP access to debug this. It is too difficult to set up everything necessary to debug on my side.

Sign in to reply to this post
Did this help? Tips are appreciated...

graham

Morning, Ray .. I PM'd my FTP in case you have time to look at the Premier Support related issue of notation text showing up in mobile view regardless of Rules - thanks. As for the update quantity issue for mobile, should I post this into another thread for reference?
Happy Friday!

Sign in to reply to this post

Ray BorduinWebAssist

On cart.php line 280 you have:
if (1==1 || (WA_Auth_RulePasses("Wholesaler") && $eCartNewPurple->DisplayInfo("minimumQuantity"))) {

it should just be:
if (WA_Auth_RulePasses("Wholesaler") && $eCartNewPurple->DisplayInfo("minimumQuantity")) {

That is why it is always displayed. I updated that and I added a script to the bottom of the page to make sure the GO button just closes the window and doesn't submit the form.

Sign in to reply to this post
Did this help? Tips are appreciated...

graham

Thanks, Ray ... have a great weekend.

Sign in to reply to this post

graham

Morning, Ray ... sorry to bother you, but the above issue with updating quantity seems to still exist on mobile - I change the quantity, hit Go and the update button shows for a second before reverting to product details page without updating the number. You added a script, but I am not sure if I downloaded the amended cart.php to my local folder before working on the page ... I may have uploaded over it (?). I fixed the (1=1) problem, but can't get the update to work. Would you have a moment to help again? Thanks so much.

Sign in to reply to this post

Ray BorduinWebAssist

This is the script I added to disable the "Go" button:

<script>
jQuery(document).ready(function() {
jQuery('.mobileQty').keypress(function(e) {
var code = (e.keyCode ? e.keyCode : e.which);
if ( (code==13) || (code==10))
{
jQuery(this).blur();
return false;
}
});
});
</script>



Just add it right before the </body> tag on the cart.php page if you accidentally removed it.

Sign in to reply to this post
Did this help? Tips are appreciated...

graham

Thanks, Ray ... I did overwrite it :) However, I added it now and tested that it works in Firefox browser, but not Chrome (?). Thoughts?

Sign in to reply to this post

Ray BorduinWebAssist

What exactly doesn't work in chrome? How do I reproduce it?

Sign in to reply to this post
Did this help? Tips are appreciated...

graham

Testing on Android, add item to cart - tap quantity and change number - hit Go and update shows for a second, but reverts back to product detail page. Works fine on Firefox.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...