Git Product home page Git Product logo

related-product-plugin's People

Contributors

chihiro-adachi avatar izayoi256 avatar junpeko5 avatar k-yamamura avatar kazumiiiiiiiiiii avatar kiy0taka avatar lammn avatar lqdung-lockon avatar nanasess avatar ndquocphong avatar okazy avatar pineray avatar ptthao-yrglmvn avatar ryo-endo avatar t-nagahashi avatar tps-nghiale avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

related-product-plugin's Issues

商品の順番を並び替えしたい

商品の順番を入れ替えるには、削除→登録しなおしを行う必要があります。
登録情報はそのままで、並び替えをできるようにしたいです。

関連商品の選択肢が検索結果に関係なく表示される

事象

関連商品の「商品を選択」の下のセレクトボックスで、「商品を選択」で検索したものとは関係ない商品がでてきている。また、現在編集中の商品(自分自身)も選択できてしまう。

期待

関連商品を選択するセレクトボックスは、検索結果のカテゴリの商品のみ
もしくは2.13のように、検索で選択した商品の商品名が表示される

関連商品が設定されている商品詳細でカートへ投入しようとするとエラーが発生する

商品詳細画面のカート投入処理を行う部分にあるカート画面へのリダイレクト時に、showRelatedProduct が呼ばれてしまい、$crawler->filter('#main');が空になり、InvalidArgumentExceptionが発生します。

エラーメッセージ

    The current node list is empty.

スタックトレース

    in Crawler.php line 580
    at Crawler->html() in Event.php line 52
    at Event->showRelatedProduct(object(FilterResponseEvent), 'eccube.event.render.product_detail.before', object(EventDispatcher))
    at call_user_func(array(object(Event), 'showRelatedProduct'), object(FilterResponseEvent), 'eccube.event.render.product_detail.before', object(EventDispatcher)) in EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(array(object(Event), 'showRelatedProduct')), 'eccube.event.render.product_detail.before', object(FilterResponseEvent)) in EventDispatcher.php line 53
    at EventDispatcher->dispatch('eccube.event.render.product_detail.before', object(FilterResponseEvent)) in Application.php line 571
    at Application->Eccube\{closure}(object(FilterResponseEvent), 'kernel.response', object(TraceableEventDispatcher))
    at call_user_func(object(Closure), object(FilterResponseEvent), 'kernel.response', object(TraceableEventDispatcher)) in WrappedListener.php line 61
    at WrappedListener->__invoke(object(FilterResponseEvent), 'kernel.response', object(EventDispatcher))
    at call_user_func(object(WrappedListener), object(FilterResponseEvent), 'kernel.response', object(EventDispatcher)) in EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.response', object(FilterResponseEvent)) in EventDispatcher.php line 53
    at EventDispatcher->dispatch('kernel.response', object(FilterResponseEvent)) in TraceableEventDispatcher.php line 124
    at TraceableEventDispatcher->dispatch('kernel.response', object(FilterResponseEvent)) in HttpKernel.php line 187
    at HttpKernel->filterResponse(object(RedirectResponse), object(Request), '1') in HttpKernel.php line 169
    at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 68
    at HttpKernel->handle(object(Request), '1', true) in Application.php line 581
    at Application->handle(object(Request)) in Application.php line 558
    at Application->run() in index_dev.php line 86

説明文にタグを入力すると、フロントで出力されるhtmlがおかしい

対象

feature/1.0.0

現象

説明文にタグを入力すると、フロントで出力されるhtmlがおかしい。

タグの外に出力されたり、からの

が出力されている。

説明文:AA<h3>BB</h3>CC
image

期待結果

<p>AA<h3>BB</h3>CC<p>
と出力されること。

その他

商品の説明文など、他でHTMLコード使用している箇所も同じ。
twigの仕様or不具合か?

登録の上限数を変更したい

現在

  • 関連商品は5項目をFIXでしか追加できない。

本来やりたいこと

  • FIX5itemsじゃなくて、ユーザは関連商品のMAXIMUM表示項目を設定できるようになりたい。

  • デフォルトは5itemsを表示しますが、新しい関連商品というボタンがあって、クリックすると、
    新しい関連商品を追加できます。以上の設定されたMAXIMUMまで追加できます。

EC-CUBE3.0.8で関連商品が登録されない

商品登録時に関連商品を選択し登録を行いますが、「商品を登録」ボタン押下後に関連商品のエリアを見ると値が何も入っていません。商品詳細ページにも関連商品は表示されていません。
何かコードを商品詳細ページに追加しなければいけないとかあるのでしょうか?

また他のプラグインが影響し、関連商品を検索しようとしてもできないケースが見られました。

フォームの幅が不揃い

関連商品のセレクトボックスと説明のテキストエリアのサイズが非常にせまく
商品名が表示されない、テキスト入力が不適切な状態

商品説明など他の項目と幅を揃えたい

関連商品検索時の検索結果上限

管理画面で関連商品を検索する際に、検索結果が多くなるとエラーになる場合がある。
ページングか上限を設ける必要がある。

YamlのEntity設定の中にMappingが間違えてます(RelatedProduct.dcm.yml)

ec-cube 3.0.12
プラグイン: RelatedProduct 0.0.2

問題:YamlのEntity設定の中にMappingが間違えてます
ファイル:
 app/Plugin/RelatedProduct/Resource/doctrine/Plugin.RelatedProduct.Entity.RelatedProduct.dcm.yml

対応方法:
行目:17~

    manyToOne:
        Product:
            targetEntity: Eccube\Entity\Product
            inversedBy: RelatedProducts
            joinColumn:
                name: product_id
                referencedColumnName: product_id
        ChildProduct:
            targetEntity: Eccube\Entity\Product
            inversedBy: RelatedChildProducts
            joinColumn:
                name: child_product_id
                referencedColumnName: product_id
    lifecycleCallbacks: {  }

    manyToOne:
        Product:
            targetEntity: Eccube\Entity\Product
            joinColumn:
                name: product_id
                referencedColumnName: product_id
        ChildProduct:
            targetEntity: Eccube\Entity\Product
            joinColumn:
                name: child_product_id
                referencedColumnName: product_id
    lifecycleCallbacks: {  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.