I am building a Page Builder Custom Content Type that will allow a user to enter in a URL and have the URL content display in an iFrame. Is this possible? /app/code/Vendor/Module/view/adminhtml/ui_component/pagebuilder_vendor_module_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd" extends="pagebuilder_base_form"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">pagebuilder_vendor_module_form.pagebuilder_vendor_module_form_data_source</item> </item> <item […]
Magento2
I want to fetch customer address into the transaction.phtml but i am not getting how to do this . I am trying below but not getting success <?php $helper = $this->helper("LofCustomerMembershipHelperData"); $transactions = $block->getTransactions(); $address=$block->getPrimaryBillingAddress(); // var_dump($helper); $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $customerSession = $objectManager->get('MagentoCustomerModelSession'); $customerId =$customerSession->getCustomer()->getId(); // $address = $this->myHelper->getCustomerAddressById(Id); // […]
We have copied the full folder of pub/media/catalog/product/ from a Magento instance 2.3.5-p1 to a new Magento instance 2.4.4 Products are all same on both instances. Pathes as well. Product images show up in category page in frontend as well as thumbnails in backend BUT not on product page in […]
Does anyone have complete knowledge about magento design patterns with their examples if yes kindly share the reference?
I want to enable/disable the COD payment method based on product attribute. I tried this: Disable Payment Method at Checkout in Magento 2 Based on Product Attribute But I am having an issue when I have 2 products in cart where, cod value of one product is set to “yes” […]
<script type="text/javascript"> require(['jquery'], function($) { $(document).ready(function() { $("select").on('change', function() { $(this).find("option:selected").each(function() { var geeks = $(this).attr("value"); if (geeks) { $(".GFG").not("." + geeks).hide(); $("." + geeks).show(); } else { $(".GFG").hide(); } }); }).change(); }); }); </script> <div> Show me ranges for: <select> <option value='select' selected>Please select</option> <option value="cars">Cars</option> <option value="bikes">Bikes</option> <option […]
I am not sure how do I write a unit test for the below controller? Any thoughts on this ? namespace GoodEnhancedProfileControllerAccount; use MagentoFrameworkAppActionHttpGetActionInterface as HttpGetActionInterface; use MagentoFrameworkAppActionContext; use MagentoFrameworkViewResultPageFactory; use GoodSSOViewModelSsoConfiguration; class Index extends MagentoCustomerControllerAbstractAccount implements HttpGetActionInterface { /** * @var PageFactory */ protected $resultPageFactory; /** * @var ssoConfiguration […]
I need to create a user registration form in magento 1.9, but on the magento checkout page, and register the user at the end of the purchase. But I don’t know the correct way to do this working in magento 1.9 checkout. Is it possible to do it using magento’s […]
I’m trying to remove a dash ('-') from an input field (Zip Code) at checkout, but can get it to work. I want to clean just the initial character if a user enters the dash at the beginning of the zip to remove it; so, from this -98001 to this […]