SearchFit - Ecommerce Platform Live Chat Call Us Today! 888.398.4703

Need some assistance

 
Post new topic   Reply to topic    forums.searchfit.com Forum Index -> SearchFit Questions and Suggestions
View previous topic :: View next topic  
Author Message
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Tue Aug 16, 2016 11:25 am GMT    Post subject: Need some assistance Reply with quote

I have almost identical code in my standard web site and in mobile site PRODUCTS template , see below: (difference is in echo statement where I use <div> in standard and <li> in mobile).
All works OK in standard site but ECHO statement in mobile site argOutOfStockMsg does not display anything.

Mobile site
$deliver='Ship time: <b>a few days</b>';
if (trim($productProperties['property_07']) != '') {
$deliver='Ship time: <b>' . trim($productProperties['property_07']) . '</b>';
}
echo '<div>DYNAMIC_INCLUDE(PRODUCT_QTY, argOutOfStockMsg='.$deliver.', argInStockMsg=<b>In Stock</b>,argDisableBackInStockSubscribers=1)</div>';

Standard site
$deliver='Ship time: <b>a few days</b>';
if (trim($productProperties['property_07']) != '') {
$deliver='Ship time: <b>' . trim($productProperties['property_07']) . '</b>';
}
echo '<li>DYNAMIC_INCLUDE(PRODUCT_QTY, argOutOfStockMsg='.$deliver.', argInStockMsg=<b>In Stock</b>,argDisableBackInStockSubscribers=1)</li>';
Back to top
View user's profile Send private message
mpetrov@searchfit
2


Joined: 07 Jul 2009
Posts: 199

PostPosted: Tue Aug 23, 2016 1:10 pm GMT    Post subject: Reply with quote

this works just fine on my local cart:
<php>$deliver = "A few days"; if (trim($productProperties['property_07']) != "") {$deliver = trim($productProperties['property_07']); }</php>
<li>DYNAMIC_INCLUDE(PRODUCT_QTY, argOutOfStockMsg=<php>echo "<b>$deliver</b>";</php>, argInStockMsg=<b>In Stock</b>,argDisableBackInStockSubscribers=1)</li>
Back to top
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Wed Aug 24, 2016 7:25 am GMT    Post subject: Reply with quote

I tried your code on two different mobile devices (iPhone and Nexus tablet) and it behaves exactly as my original code.
I left your code on my mobile site www.JewishBazaar.com for you to see.
Back to top
View user's profile Send private message
mpetrov@searchfit
2


Joined: 07 Jul 2009
Posts: 199

PostPosted: Wed Aug 24, 2016 8:10 am GMT    Post subject: Reply with quote

Strange, i used same template and i get different results than your site. I will investigate this and i will let you know when i finish.

Regards.
Back to top
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Thu Aug 25, 2016 8:41 am GMT    Post subject: Reply with quote

It looks like the DYNAMIC_INCLUDE does not work properly.
I added the following statement:

<li>DYNAMIC_INCLUDE(PRODUCT_QTY, argOutOfStockMsg=test-out,argInStockMsg=test-in,argDisableBackInStockSubscribers=1)</li>

and it looks like argOutOfStockMsg= does not work. (argInStockMsg= works fine)
Back to top
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Tue Sep 06, 2016 2:43 pm GMT    Post subject: Reply with quote

Any luck figuring out this issue?
Back to top
View user's profile Send private message
mpetrov@searchfit
2


Joined: 07 Jul 2009
Posts: 199

PostPosted: Wed Sep 07, 2016 5:32 am GMT    Post subject: Reply with quote

Hi, it seems there were a typo in your template. i changed the "argOutOfStockMsg" in your site and regenerated Shofar category.
I opened http://www.jewishbazaar.com/rams-horn-shofars-1838-prd1.htm and it seems out of stock message works there.

Can you confirm?
Back to top
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Wed Sep 07, 2016 10:34 am GMT    Post subject: Reply with quote

My regular web site has been working fine for years, it is the mobile site that has a problem with virtually the same code.
Back to top
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Wed Sep 14, 2016 7:05 am GMT    Post subject: Reply with quote

Do you agree that there is a problem in the DYNAMIC_INCLUDE in mobile environment?
The same code works OK in windows environment.
Back to top
View user's profile Send private message
mpetrov@searchfit
2


Joined: 07 Jul 2009
Posts: 199

PostPosted: Wed Sep 14, 2016 7:40 am GMT    Post subject: Reply with quote

The main reason of this issue is the store setting "Allow orders with out of stock items" (no out of stock warnings) which should hide the out of stock messages with this dynamic include.
I'm working on making mobile behavior same as desktop.

Best regards.
Back to top
View user's profile Send private message
mpetrov@searchfit
2


Joined: 07 Jul 2009
Posts: 199

PostPosted: Wed Sep 14, 2016 8:07 am GMT    Post subject: Reply with quote

Hello,
I changed the behavior of this dynamic include for mobile.

Can you confirm it works as expected?

Regards.
Back to top
View user's profile Send private message
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Wed Sep 14, 2016 10:57 am GMT    Post subject: Reply with quote

It works OK now, thank you.
Back to top
View user's profile Send private message
tschwaar
2


Joined: 11 Nov 2015
Posts: 4

PostPosted: Fri Sep 16, 2016 4:59 am GMT    Post subject: Reply with quote

@zeev, thanks for posting this issue. We, interestingly, had a very similar problem that I emailed Gabe about last week. Mladen, since you were just looking at that same Dynamic_Include code for zeev's problem, can you comment on the following?:

We are using a Dynamic_Include (similar to zeev's) when showing related products. We are setting the "argDisableBackInStockSubscribers" parameter to 1. This correctly hides the "Notify Me" link on desktop but on mobile (which, again, is using the exact same code) the "Notify Me" link is displayed and we don't want it to be. Any ideas why? Can this be fixed?

Code:
DYNAMIC_INCLUDE(PRODUCT_QTY,
argOutOfStockMsg=,
argInStockMsg=,
argInStockSelectorToShow=
#inStockContainerAUTO_GENERATED_PRODUCT_ID,
argOutOfStockSelectorToShow=
#outOfStockContainerAUTO_GENERATED_PRODUCT_ID,
argDisableBackInStockSubscribers=1)
Back to top
View user's profile Send private message Visit poster's website
tschwaar
2


Joined: 11 Nov 2015
Posts: 4

PostPosted: Fri Sep 16, 2016 5:09 am GMT    Post subject: Reply with quote

To follow up my previous post, here's a page where a related product (shown on the right) is out of stock.
http://www.proflagsandbanners.com/green_bay_packers_g_logo_flag_49912_prd1.html

On desktop version it displays correctly WITHOUT a "Notify Me" link but on mobile, the "email me" link is not suppressed as it should be.
Back to top
View user's profile Send private message Visit poster's website
zeev
2


Joined: 09 Feb 2007
Posts: 1069

PostPosted: Sat Sep 17, 2016 6:16 am GMT    Post subject: Reply with quote

I believe there are more issues that do not function properly in the mobile environment. For example when I log in to backend and have Keep me logged in selected, it is being ignored in mobile environment and I get logged off all the time. Let's look out for more discrepancies.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.searchfit.com Forum Index -> SearchFit Questions and Suggestions All times are GMT - 10 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 cannot delete your posts in this forum
You cannot vote in polls in this forum