Hidden-Settings Get Ignored On Non Native Joomla/sp Pages - Question | JoomShaper

Hidden-Settings Get Ignored On Non Native Joomla/sp Pages

B

BITS

SP Page Builder 1 year ago

If you use settings for hiding on xl/lg/md/... they will be dropped if you are for example on a virtuemart products page. If you are on a virtuemart-category page the settings work.

The problem is in the addon\start.php

You're checking here for view-modes (page, article, item, category, featured, products) and only if the current page is one of this view-modes, then the hidden-settings will be added to the addon.

Since the virtuemart-category page uses "category" as view-mode, it's working there. But the virtuemart-products page uses "productdetails" as view-mode and so the hidden-settings will be ignored. The same goes for the cart page, the settings will be ignored.

I don't know why you've added this check but it breaks the whole hiding on all non native joomla/sp page builder pages which cannot be the way you want to go if you allow to use SP Page Builder in modules...

Please fix this, otherwise I have to remove this check on each update.

0
12 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #172157

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. Can you share a screencast video about the full scenario? And provide me administrator access via hidden content area to check the issue.

Best regards,

Toufiqur Rahman (Team Lead, Support)

0
B
BITS
Accepted Answer
1 year ago #172163

Hi,

I can give you a step by step instruction, it's nothing special about my installation:

  1. Install Joomla (v5.2.0) + SP Page Builder(v5.4.1) + Virtuemart (v4.2.18 including Demo Samples)
  2. Create a SP Page Module
  3. Add a row with a single column
  4. Add two icon addons to this column
  5. The first addon is only visible for desktop
  6. The second addon is only visible for mobile
  7. Set the module to the position breadcrumbs and always visible
  8. Go to a virtuemart category page --> only the first icon is visible (on desktop)
  9. Go to a virtuemart product page --> both icons are visible
  10. On the product page all "sppb-hidden-xxxxx" classes are missing on the icon-addon-html-node

Greetings

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #172261

Please prepare the issue on this URL.

0
B
BITS
Accepted Answer
1 year ago #172267

Done.

On the "Shop" or "Pages" page only the desktop icon is visible. On the "Single Product" or "Cart" page all icons are visible.

So even with your easystore the issue exists on some pages (what is no wonder if you check for the allowed view-modes as descriped in the opening post).

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #172285

Got it your issue. I just shared your issue to our developer team. When it resolved, i will let you know. Stay with us. Thanks

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #172300

Follow this instructions.

/components/com_sppagebuilder/layouts/addon/start.php

Find out this code

$allowed_responsive_view_modes = ['page', 'article', 'item', 'category', 'featured', 'products'];

And replace with this code.

$allowed_responsive_view_modes = ['page', 'article', 'item', 'category', 'featured', 'products', 'profile', 'product', 'cart', 'login'];
0
B
BITS
Accepted Answer
1 year ago #172311

Thanks but I do not have to test this - I already know that this is only a bandage for this issue. For example the productdetails view of virtuemart would not work even then.

You have to find a completely different solution for this problem or remove this check completly.

Here a list of examples of the native (!) joomla components where this would not work too:

  • Contacts -> contact
  • Contacts -> categories
  • Newsfeed -> newsfeed
  • Privacy -> request
  • Privacy -> confirm
  • Smartsearch -> search
  • Tags -> tag
  • Tags -> tags
  • Users -> remind
  • Users -> reset
  • Wrapper -> wrapper

As you can see you never will be able to catch all possible view-modes, not even mention the third-party-extensions.

You have to know why you added this check in the first place and find another solution for your problem which you tried to solve with this check.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #172316

Updated code here and which is missing you can add inside the array.

$allowed_responsive_view_modes = ['page', 'article', 'item', 'category', 'featured', 'products', 'profile', 'product', 'cart', 'login', 'tag', 'contact', 'categories', 'newsfeed', 'request', 'confirm', 'search','tags', 'remind', 'reset', 'wrapper'];
0
B
BITS
Accepted Answer
1 year ago #172320

Yes I know but that's not the solution I have asked for in the first place. Then I'll have to modify this file on each update - so nothing has changed.

Every joomla extension which does not exactly use this views or even if joomla itself adds new views would break your logic.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #172328

Download & replace this file on this file location.

/components/com_sppagebuilder/layouts/addon/start.php

start.php.zip

0
B
BITS
Accepted Answer
1 year ago #172337

Now that's the solution I wanted to see! It's working how it should, if you add this now to the future updates we can close this ticket.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #172346

Yes, We will add this function next update. Thanks

0