Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am working with uCommerce and I want to remove one of the add buttons on an existing tab.
I followed this Removing a button section on this article
Everything is working fine but I dont know what is imageButtom inside the RemoveMenuButtion() method.
Here is the code I have -
public PipelineExecutionResult Execute(SectionGroup subject) { if (subject.GetViewName() != Constants.UI.Pages.Orders.Order) return PipelineExecutionResult.Success; var section = subject.Sections.FirstOrDefault(s => s.OriginalName == Constants.UI.Sections.Orders.Order.Shipping); if (section == null) return PipelineExecutionResult.Success; var imageButton = new ImageButton { ImageUrl = $"{_pathService.GetPath()}/images/ui/add.png"}; section.Menu.RemoveMenuButtion(imageButton); return PipelineExecutionResult.Success; }
I think the problem is here-
var imageButton = new ImageButton { ImageUrl = $"{_pathService.GetPath()}/images/ui/add.png"};
But not sure, as there is nothing specific on the documentation though.
Any help is highly appreciated.
Thanks
This topic has been answered on the Ucommerce open support forum Eureka!
For others interested in the answer you can find it at: http://eureka.ucommerce.net/#!/question/2288/How-to-remove-an-existing-button-on-a-tab-in-uCommerce
Regards, David
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to remove an existing button on a tab in uCommerce?
I am working with uCommerce and I want to remove one of the add buttons on an existing tab.
I followed this Removing a button section on this article
Everything is working fine but I dont know what is imageButtom inside the RemoveMenuButtion() method.
Here is the code I have -
I think the problem is here-
But not sure, as there is nothing specific on the documentation though.
Any help is highly appreciated.
Thanks
This topic has been answered on the Ucommerce open support forum Eureka!
For others interested in the answer you can find it at: http://eureka.ucommerce.net/#!/question/2288/How-to-remove-an-existing-button-on-a-tab-in-uCommerce
Regards, David
is working on a reply...