0

I would like to edit a file where I can add the attribute "delivery_time" to the product page view so my customers can see the shipping / delivery times right away when checking out the product.
How can I do this / Where is that file I need to edit located?

Thanks alot!! :))) enter image description here

1

Try with adding at this file:

vendor/magento/module-catalog/view/frontend/templates/product/view/form.phml

Here you can add code like : echo $_product->getDeliveryTime();

And make sure attribute are Used in Product Listing.

  • Okey. What would I need to put there, what kinda code? thx! – N1njaWTF Apr 2 '17 at 11:49
  • Try to be more describing your answer @Feedlay – Priyank Apr 2 '17 at 13:13
  • You can write there like $product->getDeliveryTime() – user52581 Apr 3 '17 at 3:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.